Home | History | Annotate | Download | only in image

Lines Matching refs:SkImage

12 SkBitmap::Config SkImageInfoToBitmapConfig(const SkImage::Info& info,
15 case SkImage::kAlpha_8_ColorType:
17 case SkImage::kIgnore_AlphaType:
21 case SkImage::kOpaque_AlphaType:
25 case SkImage::kPremul_AlphaType:
26 case SkImage::kUnpremul_AlphaType:
32 case SkImage::kRGB_565_ColorType:
37 case SkImage::kRGBA_8888_ColorType:
38 case SkImage::kBGRA_8888_ColorType:
42 case SkImage::kPMColor_ColorType:
44 case SkImage::kIgnore_AlphaType:
45 case SkImage::kUnpremul_AlphaType:
48 case SkImage::kOpaque_AlphaType:
51 case SkImage::kPremul_AlphaType:
61 int SkImageBytesPerPixel(SkImage::ColorType ct) {
74 bool SkBitmapToImageInfo(const SkBitmap& bm, SkImage::Info* info) {
77 info->fColorType = SkImage::kAlpha_8_ColorType;
81 info->fColorType = SkImage::kRGB_565_ColorType;
85 info->fColorType = SkImage::kPMColor_ColorType;
94 info->fAlphaType = bm.isOpaque() ? SkImage::kOpaque_AlphaType :
95 SkImage::kPremul_AlphaType;
99 SkImage* SkNewImageFromBitmap(const SkBitmap& bm, bool canSharePixelRef) {
100 SkImage::Info info;
105 SkImage* image = NULL;
111 image = SkImage::NewRasterCopy(info, bm.getPixels(), bm.rowBytes());