os/graphics/graphicsdeviceinterface/directgdiadaptation/cmnsrc/directgdiimageref.h
First public contribution.
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #ifndef _DIRECTGDIIMAGEREF_H_
17 #define _DIRECTGDIIMAGEREF_H_
24 #include "directgdidrawableref.h"
25 #include <graphics/sgimage.h>
29 Class to allow an RSgImage to be created and used by CDirectGdiImageTargetImpl
30 and CDirectGdiImageSourceImpl.
34 NONSHARABLE_CLASS(CDirectGdiImageRef) : public CDirectGdiDrawableRef
37 virtual ~CDirectGdiImageRef();
38 inline const TSize& Size() const;
39 inline const TUidPixelFormat& PixelFormat() const;
40 inline const RSgImage& Image() const;
44 virtual TInt Construct(const RSgImage& aSgImage);
52 TUidPixelFormat iImagePixelFormat;
56 @return The size of the RSgImage.
58 inline const TSize& CDirectGdiImageRef::Size() const
64 @return The pixel format of the RSgImage.
66 inline const TUidPixelFormat& CDirectGdiImageRef::PixelFormat() const
68 return iImagePixelFormat;
72 @return A const reference to the RSgImage contained in this class.
74 inline const RSgImage& CDirectGdiImageRef::Image() const
79 #endif // _DIRECTGDIIMAGEREF_H_