os/graphics/graphicsdeviceinterface/gdi/tgdi/TRGB.H
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 // Copyright (c) 1998-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".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 #ifndef __TRGB_H__
    17 #define __TRGB_H__
    18 
    19 #include <gdi.h>
    20 #include "TGraphicsHarness.h"
    21 
    22 
    23 class CTRgb : public CTGraphicsBase
    24 	{
    25 public:
    26 	CTRgb(CTestStep* aStep);
    27 
    28 protected:
    29 //from 	CTGraphicsStep
    30 	virtual void RunTestCaseL(TInt aCurTestCase);
    31 private:
    32 	void TestGray2();
    33 	void TestGray4();
    34 	void TestGray16();
    35 	void TestGray256();
    36 	void TestColor16();
    37 	void TestColor256();
    38 	void TestColor4K();
    39 	void TestColor64K();
    40 	void TestColor16M();
    41 	void TestColor16MU();
    42 	void TestColor16MA();
    43 	void TestColor256Util();
    44 	void TestColor16MAP();
    45 	void ValidatePMAndNPM(TInt aAlpha, TInt aValue, TInt aPreMulVal, TInt aNonPreMulValue);
    46 	};
    47 
    48 class CTRgbStep : public CTGraphicsStep
    49 	{
    50 public:
    51 	CTRgbStep();
    52 protected:	
    53 	//from CTGraphicsStep
    54 	virtual CTGraphicsBase* CreateTestL();
    55 	};
    56 
    57 _LIT(KTRgbStep,"TRgb");
    58 
    59 
    60 #endif