namespace vclcanvas
{ // Currently, the only way to generate an XBitmap is from // XGraphicDevice.getCompatibleBitmap(). Therefore, we don't even // take a bitmap here, but a VDev directly.
CanvasBitmap::CanvasBitmap( const ::Size& rSize, bool bAlphaBitmap,
rendering::XGraphicDevice& rDevice, const OutDevProviderSharedPtr& rOutDevProvider )
{ // create bitmap for given reference device // ========================================
Bitmap aBitmap(rSize, vcl::PixelFormat::N24_BPP);
// only create alpha channel bitmap, if factory requested // that. Providing alpha-channeled bitmaps by default has, // especially under VCL, a huge performance penalty (have to // use alpha VDev, then). if( bAlphaBitmap )
{
AlphaMask aAlpha ( rSize );
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.