public interface IRenderTarget2 extends IRenderTarget
IRenderTarget.LayerType| Modifier and Type | Method and Description |
|---|---|
ICanvas2 |
createOffscreenRenderCanvas(int surfaceId)
Creates a Canvas that draws onto the offscreen render surface associated with a given identifier.
|
int |
createOffscreenRenderSurface(int width,
int height,
boolean alphaMask)
Requests the creation of an offscreen render surface (e.g.
|
float |
getPixelDensity()
Returns the render target pixel density.
|
void |
releaseOffscreenRenderSurface(int surfaceId)
Requests the release of the offscreen render surface associated with a given identifier.
|
boolean |
supportsOffscreenRendering()
Indicates whether this render target supports offscreen rendering.
|
invalidate, invalidateboolean supportsOffscreenRendering()
true if offscreen rendering is supported, otherwise false.float getPixelDensity()
int createOffscreenRenderSurface(int width,
int height,
boolean alphaMask)
width - the width of the surface to create (view coordinates in pixel).height - the height of the surface to create (view coordinates in pixel).alphaMask - request creation of an alpha mask. Only the alpha channel
is relevant. The actual red, green and blue channel values are given by
the blend color.
Note: createOffscreenRenderCanvas() will be called with this identifier,
to request drawing of the associated surface.
void releaseOffscreenRenderSurface(int surfaceId)
surfaceId - the identifier of the surface to release.ICanvas2 createOffscreenRenderCanvas(int surfaceId)
surfaceId - the identifier of the surface to be drawn.