Scaleform::Render::ImageBase Scaleform::Render::Image Scaleform::Render::FenceResource Scaleform::Render::DrawableImage
class DrawableImage : public Image, public ListNode<DrawableImage>, public FenceResource;
DrawableImage is an image virtualization object that combines software pixel data access with hardware rendering. DrawableImage object is used primarily to implement Flash BitmapData interface, but can also be useful when Advance thread access to rendered content is needed.
One of key features of DrawableImage is that is allows rendering of a render tree on a separate thread, while feeding this data back to advance thread for processing. Since such communication can involve significant
stalling, several important use cases are optimized:
a) Draw() to DrawableImage one or few files, using it as a render source only for other tree rendering. This should queue up render thread processing with no stalls and read-back communication necessary.
b) Modify image with either draw() or software to initialize content, then do multiple HitTest / pixel access operations that are fast.
Both of these cases are likely to be heavily used in Flash games. In general, DrawableImage tries to minimize render thread stalls through command queuing and minimizing render thread transitions. Due to high overhead of thread communication, DrawableImage commands that don't return a value may be queued up for delayed group processing.
Enumeration |
Description |
| |
The state of the DrawableImage. | |
Comparison operators for comparing the pixel value with the threshold value. |
Method |
Description |
Disposes a drawable image so that it can no longer be reused. | |
DrawableImage destructor. | |
Generates a filtered image from a source. | |
Determines what rectangle ApplyFilter would affect. | |
Performs a color transform operation on the image. | |
Compares two DrawableImages. | |
Transfers data from one channel of another drawable object into a channel of the current drawable image | |
Provides a fast routine to perform pixel manipulation between images with no stretching, rotation, or color effects. | |
Decodes image into the destination ImageData, potentially converting data a scan-line at a time. | |
Draws the render tree. | |
DrawableImage constructor. | |
Fills a rectangular area of pixels with a specified color. | |
Performs a flood fill operation on an image starting at an (x, y) coordinate and filling with a certain color. | |
Returns the current object as a Render::Image pointer. | |
Calculates rectangular bounds that fully encloses all pixels of the specified color or all pixels that doesn't include the specified color. | |
Returns the DrawableImageContext (Movie-level object) for this DrawableImage. | |
Returns the format (ImageFormat) of this image. | |
Returns the image type (ImageType) for this image. By default, returns Type_DrawableImage. | |
Obtains the number of mipmaps of the texture in the image. | |
Gets pixel value without alpha. | |
Gets pixel value with alpha. | |
Gets the pixels. | |
Returns the render target. | |
Obtains the logical dimensions of the images. | |
Returns the capability flag set for the image. See ImageUse. | |
Computes populations counts of each channels color values. | |
Performs hit testing between two images or rectangles. | |
Checks if the image is transparent or whether the BitmapData object was created with the 'transparent' flag. | |
Merge merges source image into destination image with per-channel blending. | |
Fills an image with pixels representing random noise. | |
Performs a paletteMap operation on the image. Remaps the color channel values in an image that has up to four arrays of color palette data, one for each channel. | |
Generates a Perlin noise image. | |
Performs a pixel dissolve either from a source image to a destination image or by using the same image. | |
Scrolls an image by a certain (x, y) pixel amount. | |
Obtains the texture pointer from the data, intended for use with a given renderer. | |
Sets the pixel value without alpha. | |
Sets the pixel value with alpha. | |
Fills in the destination rectangle with pixels. | |
Tests pixel values in an image against a specified threshold and sets pixels that pass the test to new color values. | |
Called to indicate texture contents are lost and releases the texture references held by the images. | |
| |
Releases texture with proper notification. |
Render_DrawableImage.h