Lines Matching full:bitmap
123 // original bitmap, sampling 1 pixel for every size pixels. e.g. if sample
124 // size is set to 3, then the returned bitmap will be 1/3 as wide and high,
153 only the bitmap's width/height/config need be set. If kDecodePixels_Mode
154 is passed, then the bitmap must have pixels or a pixelRef.
157 kDecodeBounds_Mode, //!< only return width/height/config in bitmap
158 kDecodePixels_Mode //!< return entire bitmap (including pixels)
161 /** Given a stream, decode it into the specified bitmap.
162 If the decoder can decompress the image, it calls bitmap.setConfig(),
166 bitmap. It can then set the pixels with the decompressed image.
168 * decoding, the function converts the decoded config in bitmap
170 * tested by Bitmap::canCopyTo(pref).
174 bool decode(SkStream*, SkBitmap* bitmap, SkBitmap::Config pref, Mode);
175 bool decode(SkStream* stream, SkBitmap* bitmap, Mode mode) {
176 return this->decode(stream, bitmap, SkBitmap::kNo_Config, mode);
185 in bitmap. Return true for success or false on failure.
190 there is a conflict (e.g. the image has per-pixel alpha and the bitmap's
197 static bool DecodeFile(const char file[], SkBitmap* bitmap,
200 static bool DecodeFile(const char file[], SkBitmap* bitmap) {
201 return DecodeFile(file, bitmap, SkBitmap::kNo_Config,
205 result in bitmap. Return true for success or false on failure.
210 there is a conflict (e.g. the image has per-pixel alpha and the bitmap's
217 static bool DecodeMemory(const void* buffer, size_t size, SkBitmap* bitmap,
220 static bool DecodeMemory(const void* buffer, size_t size, SkBitmap* bitmap){
221 return DecodeMemory(buffer, size, bitmap, SkBitmap::kNo_Config,
225 in bitmap. Return true for success or false on failure.
231 and the bitmap's config does not support that), in which case the
237 static bool DecodeStream(SkStream* stream, SkBitmap* bitmap,
240 static bool DecodeStream(SkStream* stream, SkBitmap* bitmap) {
241 return DecodeStream(stream, bitmap, SkBitmap::kNo_Config,
265 virtual bool onDecode(SkStream*, SkBitmap* bitmap, Mode) = 0;
286 /* Helper for subclasses. Call this to allocate the pixel memory given the bitmap's
298 the returned bitmap. SrcDepth and hasAlpha reflect the raw data of the