tsrc/fbsbitmapstub/inc/fbs.h
changeset 15 ccd8e69b5392
parent 2 b31261fd4e04
child 20 e8be2c2e049d
child 22 496ad160a278
equal deleted inserted replaced
2:b31261fd4e04 15:ccd8e69b5392
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __FBSBITMAP__
       
    19 #define __FBSBITMAP__
       
    20 
       
    21 #include <e32base.h>
       
    22 
       
    23 enum TDisplayMode
       
    24     {
       
    25     ///No display mode
       
    26     ENoneCopy,
       
    27     ///Monochrome display mode (1 bpp)
       
    28     EGray2Copy,
       
    29     ///Four grayscales display mode (2 bpp)
       
    30     EGray4Copy,
       
    31     ///16 grayscales display mode (4 bpp)
       
    32     EGray16Copy,
       
    33     ///256 grayscales display mode (8 bpp)
       
    34     EGray256Copy,
       
    35     ///Low colour EGA 16 colour display mode (4 bpp)
       
    36     EColor16Copy,
       
    37     ///256 colour display mode (8 bpp)
       
    38     EColor256Copy,
       
    39     ///64,000 colour display mode (16 bpp)
       
    40     EColor64KCopy,
       
    41     ///True colour display mode (24 bpp)
       
    42     EColor16MCopy,
       
    43     ///(Not an actual display mode used for moving buffers containing bitmaps)
       
    44     ERgbCopy,
       
    45     ///4096 colour display (12 bpp).
       
    46     EColor4KCopy,
       
    47     EColor16MUCopy,
       
    48     ///Display mode with alpha (24bpp colour plus 8bpp alpha)
       
    49     EColor16MACopy,
       
    50     //Any new display mode should be insterted here!
       
    51     //There might be up to 255 display modes, so value of the last
       
    52     //inserted EColorXXX enum item should be less than 256 -
       
    53     //BC reasons!
       
    54     EColorLastCopy,
       
    55     };
       
    56     
       
    57 class CFbsBitmap
       
    58 	{
       
    59 
       
    60 
       
    61 	public:
       
    62 	
       
    63 		CFbsBitmap();
       
    64 		~CFbsBitmap();
       
    65 	
       
    66 	
       
    67 	TInt Create( const TSize& aSizeInPixels, TDisplayMode aDispMode);
       
    68  
       
    69 	TInt CFbsBitmap::Load(const TDesC& /*aFileName*/,
       
    70 	                      TInt32 /*aId*/,TBool /*aShareIfLoaded*/);
       
    71 
       
    72 
       
    73 	TInt CFbsBitmap::Load(const TDesC& /*aFileName*/,
       
    74 	                      TInt32 /*aId*/,TBool /*aShareIfLoaded*/,
       
    75 	                      TUint /*aFileOffset*/);
       
    76 	
       
    77 
       
    78 	
       
    79 	};
       
    80 
       
    81 #endif