Home | History | Annotate | Download | only in images

Lines Matching refs:bitmap

160     // original bitmap, sampling 1 pixel for every size pixels. e.g. if sample
161 // size is set to 3, then the returned bitmap will be 1/3 as wide and high,
190 only the bitmap's width/height/config need be set. If kDecodePixels_Mode
191 is passed, then the bitmap must have pixels or a pixelRef.
194 kDecodeBounds_Mode, //!< only return width/height/config in bitmap
195 kDecodePixels_Mode //!< return entire bitmap (including pixels)
198 /** Given a stream, decode it into the specified bitmap.
199 If the decoder can decompress the image, it calls bitmap.setConfig(),
203 bitmap. It can then set the pixels with the decompressed image.
205 * decoding, the function converts the decoded config in bitmap
207 * tested by Bitmap::canCopyTo(pref).
211 bool decode(SkStream*, SkBitmap* bitmap, SkBitmap::Config pref, Mode, bool reuseBitmap = false);
212 bool decode(SkStream* stream, SkBitmap* bitmap, Mode mode, bool reuseBitmap = false) {
213 return this->decode(stream, bitmap, SkBitmap::kNo_Config, mode, reuseBitmap);
233 virtual bool decodeRegion(SkBitmap* bitmap, SkIRect rect,
242 in bitmap. Return true for success or false on failure.
247 there is a conflict (e.g. the image has per-pixel alpha and the bitmap's
254 static bool DecodeFile(const char file[], SkBitmap* bitmap,
257 static bool DecodeFile(const char file[], SkBitmap* bitmap) {
258 return DecodeFile(file, bitmap, SkBitmap::kNo_Config,
262 result in bitmap. Return true for success or false on failure.
267 there is a conflict (e.g. the image has per-pixel alpha and the bitmap's
274 static bool DecodeMemory(const void* buffer, size_t size, SkBitmap* bitmap,
277 static bool DecodeMemory(const void* buffer, size_t size, SkBitmap* bitmap){
278 return DecodeMemory(buffer, size, bitmap, SkBitmap::kNo_Config,
282 in bitmap. Return true for success or false on failure.
288 and the bitmap's config does not support that), in which case the
294 static bool DecodeStream(SkStream* stream, SkBitmap* bitmap,
297 static bool DecodeStream(SkStream* stream, SkBitmap* bitmap) {
298 return DecodeStream(stream, bitmap, SkBitmap::kNo_Config,
322 virtual bool onDecode(SkStream*, SkBitmap* bitmap, Mode) = 0;
333 virtual bool onDecodeRegion(SkBitmap* bitmap, SkIRect rect) {
338 * Crop a rectangle from the src Bitmap to the dest Bitmap. src and dest are
339 * both sampled by sampleSize from an original Bitmap.
341 * @param dest the destination Bitmap.
342 * @param src the source Bitmap that is sampled by sampleSize from the original
343 * Bitmap.
344 * @param sampleSize the sample size that src is sampled from the original Bitmap.
346 * the coordinate in the original Bitmap.
348 * @param (destX, destY) the upper-left point of the dest Bitmap in terms of
349 * the coordinate in the original Bitmap.
376 /* Helper for subclasses. Call this to allocate the pixel memory given the bitmap's
388 the returned bitmap. SrcDepth and hasAlpha reflect the raw data of the