Lines Matching refs:Image
5 // An Image wraps an image any flavor, be it platform-native GdkBitmap/NSImage,
6 // or a SkBitmap. This also provides easy conversion to other image types
11 // tied to the lifetime of the Image's internal storage. To allow Images to be
12 // cheaply passed around by value, the actual image data is stored in a ref-
17 // Attempting to use an empty Image will result in a crash.
56 class GFX_EXPORT Image {
69 // Creates an empty image with no representations.
70 Image();
72 // Creates a new image by copying the raw PNG-encoded input for use as the
74 explicit Image(const std::vector<ImagePNGRep>& image_reps);
76 // Creates a new image by copying the ImageSkia for use as the default
78 explicit Image(const ImageSkia& image);
82 explicit Image(GdkPixbuf* pixbuf);
84 // Does not retain |image|; expects to take ownership.
85 explicit Image(UIImage* image);
87 // Does not retain |image|; expects to take ownership.
90 explicit Image(NSImage* image);
93 // Initializes a new Image by AddRef()ing |other|'s internal storage.
94 Image(const Image& other);
97 Image& operator=(const Image& other);
99 // Deletes the image and, if the only owner of the storage, all of its cached
101 ~Image();
103 // Creates an image from the passed in 1x bitmap.
104 // WARNING: The resulting image will be pixelated when painted on a high
106 static Image CreateFrom1xBitmap(const SkBitmap& bitmap);
108 // Creates an image from the PNG encoded input.
111 // gfx::Image image =
112 // Image::CreateFrom1xPNGBytes(&png.front(), png.size());
113 static Image CreateFrom1xPNGBytes(const unsigned char* input,
116 // Converts the Image to the desired representation and stores it internally.
118 // the Image. Must only be called if IsEmpty() is false.
131 // unavailable, either because the image has no data for 1x or because it is
136 // Same as ToSkBitmap(), but returns a null SkBitmap if this image is empty.
140 // image is empty.
144 // Same as ToSkBitmap(), but returns nil if this image is empty.
152 // converted representations, rather than a limitation imposed by Image) and
171 // Returns true if this Image has no representations.
174 // Width and height of image in DIP coordinate system.
179 // Swaps this image's internal representations with |other|.
180 void SwapRepresentations(gfx::Image* other);
201 // Internal class that holds all the representations. This allows the Image to