sdkcreationmw/sdkexamples/cppexamples/S60Ex/helperfunctions/bitmapmethods.cpp
author Shabe Razvi <shaber@symbian.org>
Thu, 04 Nov 2010 17:22:05 +0000
changeset 4 b3b823debf08
parent 0 b26acd06ea60
permissions -rw-r--r--
Workaround for Bug 3917 - CWinsockInterface::DataSent calls NotifyDataSent which is not implemented.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     1
/*
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     2
* Copyright (c) 2004, 2006 Nokia Corporation and/or its subsidiary(-ies).
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     3
* All rights reserved.
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     4
* This component and the accompanying materials are made available
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     6
* which accompanies this distribution, and is available
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     8
*
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     9
* Initial Contributors:
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    11
*
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    12
* Contributors:
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    13
*
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    14
* Description: 
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    15
*
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    16
*/
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    17
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    18
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    19
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    20
// INCLUDE FILES
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    21
#include "bitmapmethods.h"
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    22
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    23
#include <eikenv.h>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    24
#include <fbs.h>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    25
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    26
// ============================ MEMBER FUNCTIONS ==============================
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    27
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    28
// ----------------------------------------------------------------------------
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    29
// NBitmapMethods::CreateGraphicsContextLC()
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    30
// Create a graphics context and leave it on the cleanup stack.
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    31
// ----------------------------------------------------------------------------
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    32
//
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    33
CFbsBitGc* NBitmapMethods
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    34
::CreateGraphicsContextLC( CFbsBitmapDevice& aBitmapDevice )
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    35
    {
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    36
    CFbsBitGc* graphicsContext = NULL;
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    37
    User::LeaveIfError( aBitmapDevice.CreateContext( graphicsContext ) );
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    38
    CleanupStack::PushL( graphicsContext );
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    39
    return graphicsContext;
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    40
    }
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    41
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    42
// ----------------------------------------------------------------------------
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    43
// NBitmapMethods::CreateGraphicsContextL()
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    44
// Create a graphics context.
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    45
// ----------------------------------------------------------------------------
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    46
//
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    47
CFbsBitGc* NBitmapMethods
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    48
::CreateGraphicsContextL( CFbsBitmapDevice& aBitmapDevice )
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    49
    {
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    50
    CFbsBitGc* gc = CreateGraphicsContextLC( aBitmapDevice );
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    51
    CleanupStack::Pop( gc );
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    52
    return gc;
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    53
    }
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    54
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    55
// ----------------------------------------------------------------------------
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    56
// NBitmapMethods::CreateBitmapDeviceLC()
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    57
// Create a bitmap device and leave it on the cleanup stack.
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    58
// ----------------------------------------------------------------------------
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    59
//
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    60
CFbsBitmapDevice* NBitmapMethods::CreateBitmapDeviceLC( CFbsBitmap& aBitmap )
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    61
    {
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    62
    CFbsBitmapDevice* bitmapDevice = CFbsBitmapDevice::NewL( &aBitmap );
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    63
    CleanupStack::PushL( bitmapDevice );
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    64
    return bitmapDevice;
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    65
    }
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    66
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    67
// ----------------------------------------------------------------------------
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    68
// NBitmapMethods::CreateBitmapDeviceL()
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    69
// Create a bitmap device.
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    70
// ----------------------------------------------------------------------------
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    71
//
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    72
CFbsBitmapDevice* NBitmapMethods::CreateBitmapDeviceL( CFbsBitmap& aBitmap )
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    73
    {
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    74
    CFbsBitmapDevice* device = CreateBitmapDeviceLC( aBitmap );
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    75
    CleanupStack::Pop( device );
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    76
    return device;
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    77
    }
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    78
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    79
// ----------------------------------------------------------------------------
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    80
// NBitmapMethods::CreateBitmapLC()
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    81
// Create a bitmap and leave it on the cleanup stack.
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    82
// ----------------------------------------------------------------------------
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    83
//
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    84
CFbsBitmap* NBitmapMethods
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    85
::CreateBitmapLC( TSize aSizeInPixels, TDisplayMode aDispMode )
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    86
    {
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    87
    CFbsBitmap* bitmap = new ( ELeave ) CFbsBitmap();
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    88
    CleanupStack::PushL( bitmap );
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    89
    User::LeaveIfError( bitmap->Create( aSizeInPixels,aDispMode ) );
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    90
    ASSERT( ( bitmap->DisplayMode() == KColourDepth )
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    91
                                    || ( bitmap->DisplayMode()  == EGray2 ) );
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    92
    return bitmap;
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    93
    }
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    94
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    95
// ----------------------------------------------------------------------------
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    96
// NBitmapMethods::CreateBitmapL()
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    97
// Create a bitmap.
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    98
// ----------------------------------------------------------------------------
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    99
//
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   100
CFbsBitmap* NBitmapMethods
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   101
::CreateBitmapL( TSize aSizeInPixels, TDisplayMode aDispMode )
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   102
    {
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   103
    CFbsBitmap* bitmap = CreateBitmapLC( aSizeInPixels, aDispMode );
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   104
    CleanupStack::Pop( bitmap );
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   105
    return bitmap;
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   106
    }
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   107
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   108
// ----------------------------------------------------------------------------
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   109
// NBitmapMethods::CreateBitmapLC()
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   110
// Create a bitmap and leave it on the cleanup stack.
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   111
// ----------------------------------------------------------------------------
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   112
//
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   113
CFbsBitmap* NBitmapMethods::CreateBitmapLC( const TDesC& aFileName, TInt aId )
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   114
    {
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   115
    CFbsBitmap* bitmap = new ( ELeave ) CFbsBitmap();
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   116
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   117
    CleanupStack::PushL( bitmap );
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   118
    TInt loadException = bitmap->Load( aFileName, aId );
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   119
    User::LeaveIfError( loadException );
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   120
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   121
    if ( ( bitmap->DisplayMode() == KColourDepth )
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   122
                                 || ( bitmap->DisplayMode()  == EGray2 ) )
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   123
        {
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   124
        return bitmap;
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   125
        }
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   126
    else
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   127
        {
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   128
        CFbsBitmap* newBitmap = CreateBitmapLC(    bitmap->SizeInPixels(),
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   129
                                                KColourDepth );
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   130
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   131
        CFbsBitmapDevice* bitmapDevice = CreateBitmapDeviceLC( *newBitmap );
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   132
        CFbsBitGc* bitmapGc = CreateGraphicsContextLC( *bitmapDevice );
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   133
        bitmapGc->BitBlt( TPoint( 0,0 ),
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   134
                          bitmap, TRect( bitmap->SizeInPixels() ) );
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   135
        CleanupStack::PopAndDestroy( 2 ); // gc and device
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   136
        // The next three lines are here to get rid
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   137
        // of the old bitmap but keep the new one
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   138
        CleanupStack::Pop( newBitmap );
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   139
        CleanupStack::PopAndDestroy( bitmap );
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   140
        CleanupStack::PushL( newBitmap );
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   141
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   142
        return newBitmap;
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   143
        }
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   144
    }
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   145
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   146
// ----------------------------------------------------------------------------
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   147
// NBitmapMethods::CreateBitmapL()
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   148
// Create a bitmap.
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   149
// ----------------------------------------------------------------------------
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   150
//
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   151
CFbsBitmap* NBitmapMethods::CreateBitmapL( const TDesC& aFileName, TInt aId )
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   152
    {
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   153
    CFbsBitmap* bitmap = CreateBitmapLC( aFileName, aId );
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   154
    CleanupStack::Pop( bitmap );
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   155
    return bitmap;
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   156
    }
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   157
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   158
// ----------------------------------------------------------------------------
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   159
// NBitmapMethods::BitBltMaskedEntireBitmap()
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   160
// Blit the entire of a bitmap with a mask onto a gc.
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   161
// ----------------------------------------------------------------------------
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   162
//
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   163
void NBitmapMethods::BitBltMaskedEntireBitmap( CFbsBitGc& aTargetGc,
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   164
                                               TPoint aTopLeft,
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   165
                                               const CFbsBitmap& aBitmap,
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   166
                                               const CFbsBitmap& aBitMask )
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   167
    {
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   168
    PartialReset( aTargetGc );
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   169
    aTargetGc.BitBltMasked( aTopLeft,
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   170
                            &aBitmap,
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   171
                            aBitmap.SizeInPixels(),
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   172
                            &aBitMask,
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   173
                            ETrue );
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   174
    PartialReset( aTargetGc );
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   175
    }
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   176
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   177
// ----------------------------------------------------------------------------
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   178
// NBitmapMethods::PartialReset()
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   179
// Reset a gc.
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   180
// ----------------------------------------------------------------------------
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   181
//
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   182
void NBitmapMethods::PartialReset( CFbsBitGc& aGc )
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   183
    {
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   184
    aGc.SetPenSize( TSize( 1,1 ) );
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   185
    aGc.SetPenColor( KRgbBlack );
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   186
    aGc.SetPenStyle( CFbsBitGc::ESolidPen );
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   187
    aGc.SetDrawMode( CFbsBitGc::EDrawModePEN );
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   188
    aGc.DiscardFont();
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   189
    aGc.DiscardBrushPattern();
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   190
    aGc.SetBrushColor( KRgbWhite );
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   191
    aGc.SetBrushStyle( CFbsBitGc::ENullBrush );
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   192
    aGc.SetCharJustification( 0,0 );
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   193
    aGc.SetWordJustification( 0,0 );
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   194
    aGc.SetDitherOrigin( TPoint( 0,0 ) );
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   195
    aGc.SetPenStyle( CFbsBitGc::ENullPen );
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   196
    aGc.SetShadowMode( EFalse );
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   197
    aGc.SetStrikethroughStyle( EStrikethroughOff );
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   198
    aGc.SetUnderlineStyle( EUnderlineOff );
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   199
    aGc.SetUserDisplayMode( ENone );
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   200
    }
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   201
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   202
// End of File