Home | History | Annotate | Download | only in gfx

Lines Matching refs:Image

18 #include "ui/gfx/image/image.h"
19 #include "ui/gfx/image/image_family.h"
40 // Windows icons. For each desired image dimension, it chooses the most
41 // appropriate image for that size, and resizes it to the desired size.
43 // |image_family| is empty, all images in the family have size 0x0, or an image
54 const gfx::Image* best = image_family.GetBest(size);
61 // icons at full size if only if there is a 256x256 (kLargeIconSize) image
75 // There is no |dimension|x|dimension| source image.
85 resized_image_family->Add(gfx::Image::CreateFrom1xBitmap(resized_bitmap));
91 // Creates a set of bitmaps from an image family.
94 // size order. If an image of exactly 256x256 is specified, it is converted into
98 // Returns true on success, false on failure. This fails if any image in
99 // |image_family| is not a 32-bit ARGB image, or is otherwise invalid.
109 const gfx::Image& image = *it;
112 DCHECK_GT(image.Width(), 0);
113 DCHECK_LE(image.Width(), IconUtil::kLargeIconSize);
114 DCHECK_GT(image.Height(), 0);
115 DCHECK_LE(image.Height(), IconUtil::kLargeIconSize);
117 SkBitmap bitmap = image.AsBitmap();
128 if (image.Width() == IconUtil::kLargeIconSize &&
129 image.Height() == IconUtil::kLargeIconSize) {
130 *png_bytes = image.As1xPNGBytes();
143 // this array sorted. Also note that the maximum icon image size we can handle
191 // transparent) and the XOR mask contains the actual image pixels. If the XOR
295 gfx::Image image = gfx::Image::CreateFrom1xPNGBytes(png_bytes, png_size);
296 return scoped_ptr<SkBitmap>(new SkBitmap(image.AsBitmap()));
381 // obtain the icon's image.
395 // represents the icon image and an AND mask which is a monochrome bitmap
398 // To make things more complex, the icon image itself can be an ARGB bitmap
405 // the icon image does not have an alpha channel. The only way to tell if the
420 // Then draw the image itself which is really the XOR mask.
455 // appropriate image from |image_family| to the desired size.
466 // image < 256x256.
468 size_t bitmap_count = bitmaps.size(); // Not including PNG image.
469 // Including PNG image, if any.
492 ICONIMAGE* image = reinterpret_cast<ICONIMAGE*>(&buffer[offset]);
495 SetSingleIconImageInformation(bitmaps[i], i, icon_dir, image, offset,
573 // We start by computing certain image values we'll use later on.
601 // The helper function copies the image into the buffer one scanline at a
607 // because the underlying image has an alpha channel. An AND mask containing
667 // scan line in case the number of pixels in the image is not divisible by
668 // 8. For example, in a 15X15 image, 15 / 8 is one byte short of
670 // image scan line so we need to add a byte. Thus, we need 2 bytes instead
674 // total icon image has a 4 byte alignment). In the 15X15 image example
679 // number by the image height in order to get the total number of bytes for
680 // the AND mask. Thus, for a 15X15 image, we need 15 * 4 which is 60 bytes