class RDirectGdiImageTarget |
RDirectGdiImageTarget is a handle to a DirectGDI adaptation-specific resource which abstracts the image-based rendering target. The main intention in creating this resource is to allow a global sharable image resource (RSgImage) to be used as a target of DirectGDI rendering. For example, in a DirectGDI adaptation where OpenVG is used to implement DirectGDI functionality, the creation of RDirectGdiImageTarget may be associated with the creation of an underlying EGL surface from the given RSgImage. This handle class and its DirectGDI adaptation-specific resource are non-sharable and local within the creating thread.
This class is part of a generic layer and will forward any request to the CDirectGdiDriver singleton for the calling thread.
CDirectGdiContext is activated on an RDirectGdiImageTarget. This causes all subsequent context drawing operations to to draw to the image resource referred to by the RDirectGdiImageTarget.
CDirectGdiContext
Public Member Functions | |
---|---|
RDirectGdiImageTarget() | |
RDirectGdiImageTarget(CDirectGdiDriver &) | |
IMPORT_C void | Close() |
IMPORT_C TInt | Create(const RSgImage &) |
TInt | Handle() |
Private Attributes | |
---|---|
CDirectGdiDriver * | iDriver |
TInt | iHandle |
IMPORT_C | RDirectGdiImageTarget | ( | ) |
Default constructor. Only for embedding instances of RDirectGdiImageTarget into other classes as data members. Before a RDirectGdiImageTarget can be used the other constructor must be called.
IMPORT_C | RDirectGdiImageTarget | ( | CDirectGdiDriver & | aDriver | ) |
Constructor.
CDirectGdiDriver & aDriver | The CDirectGdiDriver for this thread. |
IMPORT_C void | Close | ( | ) |
Destroys the DirectGDI adaptation-specific resource associated with this handle. Calling this method on a handle that is not associated with any DirectGDI adaptation-specific resource will do nothing. Once Close() is called, this handle can be reused.
IMPORT_C TInt | Create | ( | const RSgImage & | aImage | ) |
Creates a DirectGDI adaptation-specific resource from the given image resource so it can be used as a target of DirectGDI rendering.
const RSgImage & aImage | The image resource. |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.