00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099 #ifndef INC_XaDrwOld_h
00100 #define INC_XaDrwOld_h
00101
00102
00103
00104
00105
00106
00107 #include "XaDraw.h"
00108
00109
00110
00111
00112
00113
00114
00115
00116
00117
00118
00119
00120
00121 DWORD XaDrawOld_GetVersion();
00122
00123 const GCONTEXT* XaDrawOld_GetContext();
00124
00125 INT32 XaDrawOld_ClearLastError();
00126 eError XaDrawOld_GetLastError();
00127
00128 INT32 XaColourOld_GetGraduationTableSize();
00129 INT32 XaColourOld_GetGraduationTableLength();
00130 INT32 XaColourOld_GetLongGraduationTableSize();
00131 INT32 XaColourOld_GetLongGraduationTableLength();
00132 INT32 XaColourOld_GetTransparentGraduationTableSize();
00133 INT32 XaColourOld_GetTransparentGraduationTableLength();
00134 INT32 XaColourOld_GetLongTransparentGraduationTableSize();
00135 INT32 XaColourOld_GetLongTransparentGraduationTableLength();
00136
00137 INT32 XaDrawOld_IsFPU(BOOL Flag);
00138
00139 INT32 XaDrawOld_SetMemoryHandlers(
00140 pBYTE (*MemoryAlloc)( UINT32 Size ),
00141 void (*MemoryFree) ( pBYTE Address )
00142 );
00143
00144 INT32 XaDrawOld_SetStackLimit( pcVOID StackLimit );
00145 INT32 XaDrawOld_SetStackSize( UINT32 StackSize );
00146 INT32 XaDrawOld_Terminate();
00147
00148 INT32 XaDrawOld_ContextLength();
00149 INT32 XaDrawOld_ComparePalettes(pcGCONTEXT pContext, pcLOGPALETTE Palette, BOOL Flag );
00150
00151 INT32 XaDrawOld_SaveContext(pGCONTEXT pContext);
00152 INT32 XaDrawOld_RestoreContext(pcGCONTEXT pContext);
00153
00154 pcLOGPALETTE XaColourOld_SelectPalette( BOOL Flag );
00155 INT32 XaColourOld_InitialiseWithPalette( pcLOGPALETTE Palette );
00156 INT32 XaColourOld_SetDitherStyle( DitherStyle Style = DITHER_GREY_ORDERED );
00157 INT32 XaColourOld_SetTileSmoothingFlag( BOOL Flag );
00158 INT32 XaColourOld_SetTileFilteringFlag( BOOL Flag );
00159 INT32 XaColourOld_SetHalftoneOrigin( INT32 x,INT32 y );
00160 INT32 XaColourOld_SetColour( COLORREF Colour );
00161 INT32 XaColourOld_SetSolidColour( COLORREF Colour,
00162 UINT32 BPP,UINT32 Format16BPP);
00163 INT32 XaColourOld_SetWordColour( DWORD Colour );
00164 INT32 XaColourOld_SetInvert( DWORD Colour );
00165 INT32 XaColourOld_SetTransparency( COLORREF Colour,DWORD Style );
00166 INT32 XaColourOld_SetTransparencyLookupTable( pcBYTE Table );
00167 pcBYTE XaColourOld_ReturnBrush();
00168 pcBYTE XaColourOld_ReturnBrushRGB();
00169 INT32 XaColourOld_AddToGraduationTable(
00170 COLORREF Colour,
00171 BOOL HSVFlag,
00172 pGraduationTable Table,
00173 UINT32 Index
00174 );
00175 INT32 XaColourOld_BuildGraduationTable(
00176 COLORREF StartColour,
00177 COLORREF EndColour,
00178 BOOL HSVFlag,
00179 pGraduationTable Table
00180 );
00181 INT32 XaColourOld_BuildGraduationTable32(
00182 COLORREF StartColour,
00183 COLORREF EndColour,
00184 BOOL HSVFlag,
00185 pGraduationTable32 Table
00186 );
00187 INT32 XaColourOld_BuildTransparencyTable(
00188 BYTE StartColour,
00189 BYTE EndColour,
00190 pTransparentGradTable Table
00191 );
00192 INT32 XaColourOld_SetGraduation(
00193 DWORD Style,
00194 pcGraduationTable Table,
00195 pcPOINT PointA,
00196 pcPOINT PointB,
00197 pcPOINT PointC
00198 );
00199 INT32 XaColourOld_SetGraduation4(
00200 DWORD Style,
00201 pcGraduationTable Table,
00202 pcPOINT PointA,
00203 pcPOINT PointB,
00204 pcPOINT PointC,
00205 pcPOINT PointD
00206 );
00207 INT32 XaColourOld_SetMultiRadial(
00208 DWORD Style,
00209 pcGraduationTable Table,
00210 pcPOINT PointA,
00211 pcPOINT PointB,
00212 pcPOINT PointC,
00213 pcPOINT PointD
00214 );
00215 INT32 XaColourOld_Set3WayGraduation(
00216 DWORD Style,
00217 COLORREF ColourA, COLORREF ColourB, COLORREF ColourD,
00218 pcPOINT PointA, pcPOINT PointB, pcPOINT PointD
00219 );
00220 INT32 XaColourOld_Set3WayGraduation4(
00221 DWORD Style,
00222 COLORREF ColourA, COLORREF ColourB, COLORREF ColourD,
00223 pcPOINT PointA, pcPOINT PointB, pcPOINT PointC, pcPOINT PointD
00224 );
00225 INT32 XaColourOld_Set4WayGraduation(
00226 DWORD Style,
00227 COLORREF ColourA, COLORREF ColourB, COLORREF ColourC, COLORREF ColourD,
00228 pcPOINT PointA, pcPOINT PointB, pcPOINT PointD
00229 );
00230 INT32 XaColourOld_Set4WayGraduation4(
00231 DWORD Style,
00232 COLORREF ColourA, COLORREF ColourB, COLORREF ColourC, COLORREF ColourD,
00233 pcPOINT PointA, pcPOINT PointB, pcPOINT PointC, pcPOINT PointD
00234 );
00235 INT32 XaColourOld_SetGourand(
00236 DWORD Style,
00237 COLORREF ColourA, COLORREF ColourB, COLORREF ColourD,
00238 pcPOINT PointA, pcPOINT PointB, pcPOINT PointD
00239 );
00240 INT32 XaColourOld_SetTransparentGraduation(
00241 DWORD Style,
00242 pcTransparentGradTable Table,
00243 pcPOINT PointA,
00244 pcPOINT PointB,
00245 pcPOINT PointC
00246 );
00247 INT32 XaColourOld_SetTransparentGraduation4(
00248 DWORD Style,
00249 pcTransparentGradTable Table,
00250 pcPOINT PointA,
00251 pcPOINT PointB,
00252 pcPOINT PointC,
00253 pcPOINT PointD
00254 );
00255 INT32 XaColourOld_SetTransparent3WayGraduation(
00256 DWORD Style,
00257 BYTE ValueA, BYTE ValueB, BYTE ValueD,
00258 pcPOINT PointA, pcPOINT PointB, pcPOINT PointD
00259 );
00260 INT32 XaColourOld_SetTransparent3WayGraduation4(
00261 DWORD Style,
00262 BYTE ValueA, BYTE ValueB, BYTE ValueD,
00263 pcPOINT PointA, pcPOINT PointB, pcPOINT PointC, pcPOINT PointD
00264 );
00265 INT32 XaColourOld_SetTransparent4WayGraduation(
00266 DWORD Style,
00267 BYTE ValueA, BYTE ValueB, BYTE ValueC, BYTE ValueD,
00268 pcPOINT PointA, pcPOINT PointB, pcPOINT PointD
00269 );
00270 INT32 XaColourOld_SetTransparent4WayGraduation4(
00271 DWORD Style,
00272 BYTE ValueA, BYTE ValueB, BYTE ValueC, BYTE ValueD,
00273 pcPOINT PointA, pcPOINT PointB, pcPOINT PointC, pcPOINT PointD
00274 );
00275 INT32 XaBitmapOld_SetBias(double);
00276 INT32 XaBitmapOld_SetGain(double);
00277 INT32 XaBitmapOld_SetBrightness(double);
00278 INT32 XaBitmapOld_SetContrast(double);
00279 INT32 XaBitmapOld_SetGamma(double);
00280 INT32 XaBitmapOld_SetPostGamma(double);
00281 INT32 XaBitmapOld_SetSaturation(double);
00282 INT32 XaBitmapOld_SetContone( UINT32 uContoneStyle, COLORREF rgbStart=0x000000, COLORREF rgbEnd=0xFFFFFF );
00283 INT32 XaBitmapOld_SetInputRange( BYTE uStart=0x00, BYTE uEnd=0xFF );
00284 INT32 XaBitmapOld_SetOutputRange( BYTE uStart=0x00, BYTE uEnd=0xFF );
00285 INT32 XaColourOld_SetTilePattern(
00286 pcBITMAPINFOHEADER BitmapInfo,
00287 pcBYTE Bitmap,
00288 DWORD Style,
00289 pcPOINT PointA,
00290 pcPOINT PointB,
00291 pcPOINT PointC,
00292 COLORREF DefaultColour = 0,
00293 pcBGRT TranslationTable = 0,
00294 pcBYTE RedTranslationTable = 0,
00295 pcBYTE GreenTranslationTable = 0,
00296 pcBYTE BlueTranslationTable = 0,
00297 pcBYTE TransparencyTranslationTable = 0,
00298 INT32 TileOffset = 0
00299 );
00300 INT32 XaColourOld_SetTilePattern4(
00301 pcBITMAPINFOHEADER BitmapInfo,
00302 pcBYTE Bitmap,
00303 DWORD Style,
00304 pcPOINT PointA,
00305 pcPOINT PointB,
00306 pcPOINT PointC,
00307 pcPOINT PointD,
00308 COLORREF DefaultColour = 0,
00309 pcBGRT TranslationTable = 0,
00310 pcBYTE RedTranslationTable = 0,
00311 pcBYTE GreenTranslationTable = 0,
00312 pcBYTE BlueTranslationTable = 0,
00313 pcBYTE TransparencyTranslationTable = 0,
00314 INT32 TileOffset = 0
00315 );
00316 INT32 XaColourOld_SetTransparentTilePattern(
00317 pcBITMAPINFOHEADER BitmapInfo,
00318 pcBYTE Bitmap,
00319 DWORD Style,
00320 pcPOINT PointA,
00321 pcPOINT PointB,
00322 pcPOINT PointC,
00323 BYTE DefaultColour = 0,
00324 pcBYTE TransparencyTranslationTable = 0,
00325 INT32 TileOffset = 0
00326 );
00327 INT32 XaColourOld_SetTransparentTilePattern4(
00328 pcBITMAPINFOHEADER BitmapInfo,
00329 pcBYTE Bitmap,
00330 DWORD Style,
00331 pcPOINT PointA,
00332 pcPOINT PointB,
00333 pcPOINT PointC,
00334 pcPOINT PointD,
00335 BYTE DefaultColour = 0,
00336 pcBYTE TransparencyTranslationTable = 0,
00337 INT32 TileOffset = 0
00338 );
00339 INT32 XaColourOld_ConvertBitmap(
00340 pcBITMAPINFOHEADER SBitmapInfo, pcBYTE SBitmap,
00341 pcBITMAPINFOHEADER DBitmapInfo, pBYTE DBitmap,
00342 DWORD Dither
00343 );
00344 INT32 XaColourOld_SetConversionPalette( pcLOGPALETTE pPalette );
00345 INT32 XaColourOld_SetMaxDiffusionError( UINT32 MaxError );
00346 INT32 XaColourOld_ScaleBitmap(
00347 pcBITMAPINFOHEADER SBitmapInfo, pcBYTE SBitmap,
00348 pcBITMAPINFOHEADER DBitmapInfo, pBYTE DBitmap,
00349 UINT32 Channels
00350 );
00351
00352 INT32 XaColourOld_SetGreyConversionValues( UINT32 Red,UINT32 Green,UINT32 Blue );
00353
00354 COLORREF XaColourOld_ConvertHSVtoRGB( COLORREF hsv );
00355 COLORREF XaColourOld_ConvertRGBtoHSV( COLORREF rgb );
00356
00357 INT32 XaColourOld_SetSeparationTables(
00358 pcBGR CyanSeparationTable,
00359 pcBGR MagentaSeparationTable,
00360 pcBGR YellowSeparationTable,
00361 pcBGR BlackSeparationTable,
00362 pcBYTE UnderColourRemovalTable,
00363 pcBYTE BlackGenerationTable
00364 );
00365 INT32 XaColourOld_SetBitmapConversionTable(
00366 pcBGR BitmapConversionTable
00367 );
00368 INT32 XaDrawOld_SetDIBitmap(
00369 pcBITMAPINFOHEADER BitmapInfo,
00370 pBYTE Bitmap,
00371 UINT32 Format16BPP = FORMAT16BPP_555
00372 );
00373 INT32 XaDrawOld_SetInvertedDIBitmap(
00374 pcBITMAPINFOHEADER BitmapInfo,
00375 pBYTE Bitmap,
00376 UINT32 Format16BPP = FORMAT16BPP_555
00377 );
00378 INT32 XaDrawOld_SetMatrix( pcGMATRIX Matrix );
00379 INT32 XaDrawOld_MaxScale ( pcGMATRIX Matrix,pcRECT BBox );
00380 INT32 XaDrawOld_GetMaxBitmapWidth();
00381 INT32 XaDrawOld_GetMaxBitmapDepth();
00382 INT32 XaDrawOld_SetAntialiasFlag( BOOL Flag );
00383 INT32 XaDrawOld_SetDashAdjustmentFlag( BOOL Flag );
00384 INT32 XaDrawOld_SetHintingFlag( BOOL Flag );
00385 INT32 XaDrawOld_SetFlatness( UINT32 Flatness );
00386 INT32 XaDrawOld_SetMiterLimit( UINT32 MiterLimit );
00387 INT32 XaDrawOld_FillRectangle( pcRECT Rectangle );
00388 INT32 XaDrawOld_FillPoint( pcPOINT Point );
00389 INT32 XaDrawOld_FillPath(
00390 pcPOINT Points,
00391 pcBYTE Types,
00392 UINT32 Length,
00393 UINT32 Winding
00394 );
00395 INT32 XaDrawOld_FillTriangle(
00396 pcPOINT PointA,
00397 pcPOINT PointB,
00398 pcPOINT PointC,
00399 DWORD Flags
00400 );
00401 INT32 XaDrawOld_HintPath(
00402 pPOINT Points,
00403 pcBYTE Types,
00404 UINT32 Length,
00405 BOOL Close,
00406 UINT32 LineWidth
00407 );
00408 INT32 XaDrawOld_StrokePath(
00409 pcPOINT Points,
00410 pcBYTE Types,
00411 UINT32 Length,
00412 BOOL Close,
00413 UINT32 LineWidth,
00414 DWORD LineCaps,
00415 DWORD LineJoin,
00416 pcDashType Dash
00417 );
00418 INT32 XaDrawOld_StrokePathToPath(
00419 pcPOINT IPoints,
00420 pcBYTE ITypes,
00421 UINT32 ILength,
00422 pPOINT OPoints,
00423 pBYTE OTypes,
00424 UINT32 OLength,
00425 BOOL Close,
00426 UINT32 LineWidth,
00427 DWORD LineCaps,
00428 DWORD LineJoin,
00429 pcDashType Dash
00430 );
00431 INT32 XaDrawOld_CalcStrokeBBox(
00432 pcPOINT IPoints,
00433 pcBYTE ITypes,
00434 UINT32 ILength,
00435 pRECT Rect,
00436 BOOL Close,
00437 UINT32 LineWidth,
00438 DWORD LineCaps,
00439 DWORD LineJoin,
00440 pcDashType Dash
00441 );
00442 INT32 XaDrawOld_IsOverlap(
00443 pcPOINT Points,
00444 pcBYTE Types,
00445 UINT32 Length,
00446 UINT32 Winding
00447 );
00448 INT32 XaDrawOld_IsStrokeOverlap(
00449 pcPOINT Points,
00450 pcBYTE Types,
00451 UINT32 Length,
00452 BOOL Close,
00453 UINT32 LineWidth,
00454 DWORD LineCaps,
00455 DWORD LineJoin,
00456 pcDashType Dash
00457 );
00458 INT32 XaDrawOld_GetStatistics(
00459 pcPOINT Points,
00460 pcBYTE Types,
00461 UINT32 Length,
00462 UINT32 Winding,
00463 pSTATISTICS Stats
00464 );
00465 INT32 XaDrawOld_MakeRegion(
00466 pcPOINT Points,
00467 pcBYTE Types,
00468 UINT32 Length,
00469 UINT32 Winding,
00470 pREGION ORegion,
00471 UINT32 OLength
00472 );
00473 INT32 XaDrawOld_MakeUnclippedRegion(
00474 pcPOINT Points,
00475 pcBYTE Types,
00476 UINT32 Length,
00477 UINT32 Winding,
00478 pREGION ORegion,
00479 UINT32 OLength
00480 );
00481 INT32 XaDrawOld_FillRegion(
00482 pcREGION Region,
00483 pcPOINT Offset
00484 );
00485 INT32 XaDrawOld_ClipRectangle( pcRECT Rectangle );
00486 INT32 XaDrawOld_DeviceClipRectangle( pcRECT Rectangle );
00487 INT32 XaDrawOld_GetDeviceClipRectangle( pRECT Rectangle );
00488 INT32 XaDrawOld_ClipRegion( pcREGION Region );
00489 pcREGION XaDrawOld_GetClipRegion();
00490 INT32 XaDrawOld_CalcBBox(
00491 pcPOINT Points,
00492 pcBYTE Types,
00493 UINT32 Length,
00494 pRECT Rect,
00495 BOOL Flatten
00496 );
00497 INT32 XaDrawOld_TransformPath(
00498 pcPOINT IPoints,
00499 pPOINT OPoints,
00500 UINT32 Length,
00501 pcGMATRIX Matrix
00502 );
00503
00504 INT32 XaDrawOld_ScrollBitmap( INT32 x,INT32 y );
00505
00506 INT32 XaDrawOld_ClearChangedBBox();
00507 INT32 XaDrawOld_GetChangedBBox( pRECT Rectangle );
00508 INT32 XaDrawOld_SetChangedBBox( pcRECT Rectangle );
00509
00510 INT32 XaDrawOld_SetBevelContrast ( UINT32 Contrast );
00511 INT32 XaDrawOld_SetBevelLightness( UINT32 Contrast );
00512 INT32 XaDrawOld_SetBevelDarkness ( UINT32 Contrast );
00513 INT32 XaDrawOld_TranslateBevelValue( BYTE Index, BYTE Colour );
00514
00515
00516
00517
00518
00519
00520
00521
00522
00523
00524
00525
00526
00527
00528
00529
00530
00531
00532
00533
00534
00535
00536
00537
00538
00539
00540
00541
00542
00543
00544
00545
00546
00547
00548
00549
00550
00551
00552
00553
00554
00555
00556
00557
00558
00559
00560
00561
00562
00563
00564
00565
00566
00567
00568
00569
00570
00571
00572
00573 #endif // INC_XaDrwOld_h