Lines Matching full:bitmap
35 The SkBitmap class specifies a raster bitmap. A bitmap has an integer width
45 kNo_Config, //!< bitmap has not been configured
57 /** Default construct creates a bitmap with zero width and height, and no pixels.
61 /** Constructor initializes the new bitmap by copying the src bitmap. All fields are copied,
62 but ownership of the pixels remains with the src bitmap.
69 /** Copies the src bitmap into this bitmap. Ownership of the src bitmap's pixels remains
70 with the src bitmap.
78 /** Return true iff the bitmap has empty dimensions.
82 /** Return true iff the bitmap has no pixels nor a pixelref. Note: this can
83 return true even if the dimensions of the bitmap are > 0 (see empty()).
87 /** Return the config for the bitmap.
93 /** Return the bitmap's width, in pixels.
96 /** Return the bitmap's height, in pixels.
99 /** Return the number of bytes between subsequent rows of the bitmap.
142 /** Returns true if the bitmap is opaque (has no translucent/transparent pixels).
145 /** Specify if this bitmap's pixels are all opaque or not. Is only meaningful for configs
150 /** Reset the bitmap to its initial state (see default constructor). If we are a (shared)
175 /** Set the bitmap's config and dimensions. If rowBytes is 0, then
180 /** Use this to assign a new pixel address for an existing bitmap. This
184 If the bitmap retains a reference to the colortable (assuming it is
197 If the bitmap retains a reference to the colortable (assuming it is
203 the bitmap will be unchanged.
214 If the bitmap retains a reference to the colortable (assuming it is
226 the bitmap will be unchanged.
243 /** Call this to ensure that the bitmap points to the current pixel address
255 /** Call this to be sure that the bitmap is valid enough to be drawn (i.e.
265 /** Return the bitmap's colortable (if any). Does not affect the colortable's
283 /** Initialize the bitmap's pixels with the specified color+alpha, automatically converting into the correct format
284 for the bitmap's config. If the config is kRGB_565_Config, then the alpha value is ignored.
288 /** Initialize the bitmap's pixels with the specified color+alpha, automatically converting into the correct format
289 for the bitmap's config. If the config is kRGB_565_Config, then the alpha value is presumed
296 /** Initialize the bitmap's pixels with the specified color, automatically converting into the correct format
297 for the bitmap's config. If the config is kRGB_565_Config, then the color's alpha value is presumed
305 /** Scroll (a subset of) the contents of this bitmap by dx/dy. If there are
309 @param subset The subset of the bitmap to scroll/move. To scroll the
314 @param inval Optional (may be null). Returns the area of the bitmap that
317 inval would be set to the entire bounds of the bitmap.
318 @return true if the scroll was doable. Will return false if the bitmap
357 /** Set dst to be a setset of this bitmap. If possible, it will share the
360 the dst bitmap. If the subset rectangle, intersected with the bitmap's
363 @param dst The bitmap that will be set to a subset of this bitmap
364 @param subset The rectangle of pixels in this bitmap that dst will
370 /** Makes a deep copy of this bitmap
374 @param dst The bitmap to be sized and allocated
377 bitmap. If this is null, the standard HeapAllocator
383 /** Returns true if this bitmap can be deep copied into the requested config
393 bitmap, and return it (this is the amount to shift matrix iterators
412 /** Allocate the pixel memory for the bitmap, given its dimensions and
416 installed via setColorTable. If false is returned, the bitmap and
486 8-bit bitmaps, where the bitmap bytes are interpreted as indices into the colortable.
574 SkAutoLockPixels(const SkBitmap& bitmap) : fBitmap(bitmap) {
575 bitmap.lockPixels();
586 The destructor will call unlockColors(false) if it has a bitmap's colortable
590 /** Initialize with no bitmap. Call lockColors(bitmap) to lock bitmap's
594 /** Initialize with bitmap, locking its colortable if present
612 /** Return the currently locked colors, or NULL if no bitmap's colortable