svgt_plat/svgt_api/inc/svgtbitmap.h
branchRCL_3
changeset 18 1902ade171ab
parent 17 db5c883ad1c5
equal deleted inserted replaced
17:db5c883ad1c5 18:1902ade171ab
     1 /*
       
     2  * Copyright (c) 2003 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:  SVGTbitmap header file
       
    15  *
       
    16 */
       
    17 
       
    18 #ifndef SVGTBITMAP_H_
       
    19 #define SVGTBITMAP_H_
       
    20 
       
    21 #include <e32base.h>
       
    22 #include <displaymode.h>
       
    23 
       
    24 class CSvgtBitmap : public CBase
       
    25     {
       
    26 public: // constructors 
       
    27     inline CSvgtBitmap( TInt8* aBitmapBuffer, TSize aBitmapSize,
       
    28                             TDisplayMode aDisplayMode, TInt aStride);
       
    29 
       
    30 public: //class methods
       
    31     /*
       
    32      * returns target image buffer
       
    33      */
       
    34     inline TInt8* BitmapBuffer() const;
       
    35     
       
    36     /*
       
    37      * returns target image size in pixels
       
    38      */
       
    39     inline TSize SizeInPixels() const;
       
    40     
       
    41     /*
       
    42      * returns target image display mode
       
    43      */
       
    44     inline TDisplayMode DisplayMode() const;
       
    45     
       
    46     /*
       
    47      * returns target image bytes per scanline
       
    48      */
       
    49     inline TInt Stride() const;
       
    50     
       
    51 private:    
       
    52     TInt8* iBitmapBuffer;
       
    53     TSize iBitmapSize;
       
    54     TDisplayMode iDisplayMode;
       
    55     TInt iStride;
       
    56     };
       
    57 
       
    58 #include <svgtbitmap.inl>
       
    59 
       
    60 #endif /* SVGTBITMAP_H_ */