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
00100
00101 #ifndef INC_BITMAP
00102 #define INC_BITMAP
00103
00104 #include "listitem.h"
00105 #include "doccolor.h"
00106 #include "gradtype.h"
00107 #include "doccomp.h"
00108
00109 #include "outptgif.h"
00110
00111 #include "dibutil.h"
00112
00113 class OILBitmap;
00114 class KernelBitmapRef;
00115 class BitmapInfo;
00116 class RenderRegion;
00117 class Filter;
00118 class FillGeometryAttribute;
00119 class BitmapList;
00120 class Document;
00121 class BaseBitmapFilter;
00122 class BaseCamelotFilter;
00123 class CCLexFile;
00124 class View;
00125 class BitmapSource;
00126 class MaskedFilter;
00127
00128
00129
00130
00131
00132
00133
00134
00135
00136
00137
00138
00139
00140
00141
00142
00143
00144
00145
00146
00147
00148 typedef struct
00149 {
00150 BYTE Red;
00151 BYTE Green;
00152 BYTE Blue;
00153 BYTE Alpha;
00154 } Pixel32bpp;
00155
00156
00157
00158
00159
00160
00161
00162
00163
00164
00165
00166
00167
00168
00169
00170 typedef BYTE PixelGreyscale;
00171
00172
00173
00174
00175
00176
00177
00178
00179
00180
00181
00182
00183
00184 class OriginalBitmapRef : public CCObject
00185 {
00186 CC_DECLARE_DYNAMIC( OriginalBitmapRef )
00187
00188 public:
00189 OriginalBitmapRef(BitmapSource* pSource = NULL, BaseBitmapFilter* pImportFilter = NULL);
00190 ~OriginalBitmapRef();
00191
00192 void SetOriginalSource(BitmapSource* pSource = NULL, BaseBitmapFilter* pImportFilter = NULL);
00193 BOOL GetOriginalSource(BitmapSource** ppSource = NULL, BaseBitmapFilter** ppImportFilter = NULL);
00194
00195 protected:
00196 BitmapSource* m_pBitmapSource;
00197 BaseBitmapFilter* m_pBitmapFilter;
00198 };
00199
00200
00201
00202
00203
00204
00205
00206
00207
00208
00209
00210
00211
00212
00213 class OILBitmap : public ListItem
00214 {
00215 CC_DECLARE_DYNAMIC( OILBitmap )
00216
00217
00218 friend class KernelBitmap;
00219 friend class GlobalBitmapList;
00220
00221 friend class OpDeleteBitmap;
00222 friend class CachedFractal;
00223 friend class NodeCacheCompound;
00224 friend class FeatherAttrValue;
00225 friend class MaskedFilter;
00226 friend class FlashRenderRegion;
00227 friend class CBitmapCache;
00228
00229 protected:
00230
00231 OILBitmap();
00232 virtual ~OILBitmap();
00233
00234
00235 static OILBitmap* Create(UINT32 Width, UINT32 Height, UINT32 Depth, UINT32 dpi);
00236
00237
00238 BOOL RemoveFromGlobalList();
00239
00240 public:
00241
00242 static OILBitmap* Default;
00243 static INT32 s_lMaxGreyscaleSize;
00244
00245
00246 static OILBitmap* Create();
00247 static OILBitmap* Attach( OILBitmap* = Default ,BOOL Temp = FALSE );
00248 static BOOL Init();
00249 static void Deinit();
00250
00251
00252 virtual INT32 operator==(const OILBitmap&) = 0;
00253 virtual BOOL GetInfo(BitmapInfo* Info, RenderRegion* pRegion = NULL) = 0;
00254
00255 virtual UINT32 GetWidth() = 0;
00256 virtual UINT32 GetHeight() = 0;
00257 virtual UINT32 GetBPP(RenderRegion* pRegion = NULL) = 0;
00258 virtual UINT32 GetNumPaletteEntries() = 0;
00259 virtual ADDR GetBitmapBits() = 0;
00260
00261 virtual UINT32 GetScanlineSize() = 0;
00262 UINT32 GetBitmapSize();
00263
00264 void SetName(String_256& NewName) { m_BitmapName = NewName; }
00265 String_256& GetName() { return m_BitmapName; }
00266
00267 void SetBitmapAnimDelay (UINT32 Delay) { m_BitmapAnimDelay = Delay; }
00268 UINT32 GetBitmapAnimDelay () { return m_BitmapAnimDelay; }
00269
00270 void SetInterpolation(BOOL Value) { m_bInterpolation = Value; }
00271 BOOL GetInterpolation() { return m_bInterpolation ; }
00272
00273 void SetHidden(BOOL Value) { m_bHidden = Value; }
00274 BOOL IsHidden() const { return m_bHidden ; }
00275 BOOL IsHiddenInGallery();
00276
00277 void SetAnimationRestoreType(GIFDisposalMethod Type) { m_AnimationRestoreType = Type; }
00278 GIFDisposalMethod GetAnimationRestoreType () { return m_AnimationRestoreType; }
00279 void SetLeftOffset(UINT32 LeftOffset) { m_LeftOffset = LeftOffset; }
00280 UINT32 GetLeftOffset() { return m_LeftOffset; }
00281 void SetTopOffset(UINT32 TopOffset) { m_TopOffset = TopOffset; }
00282 UINT32 GetTopOffset() { return m_TopOffset; }
00283
00284 BOOL InvalidateAllReferences(Document*);
00285 BOOL IsUsedInDocument(Document* pDoc, BOOL bIncludeHidden = FALSE);
00286 BOOL IsUsedByChildren(Node* pNode, BOOL bIncludeHidden = FALSE);
00287 BOOL IsUsedByNode(Node* pNode);
00288
00289
00290 virtual BOOL ExportBitmap(RenderRegion *pRegion) = 0;
00291 virtual BOOL ExportBitmapPalette(RenderRegion *pRegion) = 0;
00292 virtual BOOL ExportBitmapData(RenderRegion *pRegion) = 0;
00293
00294 virtual INT32 GetRecommendedWidth() = 0;
00295 virtual INT32 GetRecommendedHeight() = 0;
00296 virtual void SetRecommendedWidth(INT32) = 0;
00297 virtual void SetRecommendedHeight(INT32) = 0;
00298
00299 virtual BOOL SetTransparencyIndex(INT32) = 0;
00300 virtual BOOL GetTransparencyIndex(INT32*) = 0;
00301 virtual BOOL IsTransparent() = 0;
00302
00303
00304 virtual BOOL ExportSeparatedData(RenderRegion *pRegion, BYTE *SepTables) = 0;
00305 virtual BOOL ExportSeparatedPalette(RenderRegion *pRegion) = 0;
00306
00307
00308
00309 virtual BOOL GetScanline32bpp(UINT32 YPos, BOOL UsePalette, Pixel32bpp *Scanline) = 0;
00310
00311
00312 virtual BOOL WritePalette(BaseCamelotFilter *pFilter) = 0;
00313
00314 virtual BOOL Convert24To8(RGBTRIPLE *pPalette, UINT32 NumberOfPaletteEntries) = 0;
00315
00316
00317
00318 virtual BOOL ImportBitmap(CCLexFile* pFile, BaseBitmapFilter* pBitmapFilter,
00319 BaseCamelotFilter* pFilter, BOOL IsCompressed) = 0;
00320
00321
00322
00323 virtual BOOL ImportBitmap(Filter*, const BitmapInfo*, INT32) = 0;
00324
00325 virtual BOOL LoadBitmap(UINT32 BitmapResourceID) = 0;
00326
00327 virtual BOOL GetPaletteUsage(INT32 *) = 0;
00328 virtual BOOL PrepareMask(INT32 PaletteEntry) = 0;
00329 virtual BOOL GetScanlineMaskBits(INT32 ScanlineY, LPBYTE ScanlineBuf) = 0;
00330 virtual BOOL DestroyMask() = 0;
00331
00332 virtual BOOL BuildContonePalette(DocColour &Start, DocColour &End, EFFECTTYPE Effect, View *ScopeView);
00333 virtual BOOL ExportContonePalette(RenderRegion *) = 0;
00334 virtual DocColour GetContonePaletteEntry(UINT32 PaletteIndex);
00335 virtual BOOL DestroyContonePalette();
00336
00337 virtual void PlotPixel(INT32 x, INT32 y, Pixel32bpp NewValue) = 0;
00338 virtual void PlotPixel(INT32 x, INT32 y, PixelGreyscale NewValue) = 0;
00339 virtual Pixel32bpp ReadPixel32bpp (INT32 x, INT32 y, BOOL UsePalette = TRUE) = 0;
00340 virtual INT32 ReturnPaletteIndexUsed( INT32 x, INT32 y ) = 0;
00341 virtual PixelGreyscale ReadPixelGreyscale (INT32 x, INT32 y) = 0;
00342
00343
00344 virtual void DeleteData(BOOL bResetToDefault = TRUE) = 0;
00345 virtual BOOL HasBeenDeleted() = 0;
00346
00347
00348 virtual void SetOriginalSource(BitmapSource* pSource = NULL, BaseBitmapFilter* pImportFilter = NULL);
00349 virtual BOOL GetOriginalSource(BitmapSource** ppSource = NULL, BaseBitmapFilter** ppImportFilter = NULL);
00350
00351
00352 virtual BOOL SetGreyscaleVersion(OILBitmap*);
00353 virtual BOOL DestroyGreyscaleVersion();
00354 virtual OILBitmap* GetGreyscaleVersion() { return m_pGreyscaleVersion; }
00355
00356 virtual void GenerateGreyscaleTable() = 0;
00357 BYTE* GetGreyscaleTable() { return m_pGreyscaleTable; }
00358
00359 BOOL IsGreyscale() { return m_bIsGreyscale; }
00360 BOOL IsDefaultBitmap() { return this == OILBitmap::Default || HasBeenDeleted(); }
00361 BOOL IsTemp() { return m_bTemp; }
00362 BOOL IsInGlobalList() { return !m_bTemp; }
00363 BOOL IsLossy() { return m_bIsLossy; }
00364
00365 void SetAsFractal() { m_bIsAFractal = TRUE;
00366 m_bIsGreyscale = TRUE; }
00367
00368 void SetAsGreyscale() { m_bIsGreyscale = TRUE; };
00369
00370
00371
00372 void SetAsLossy(BOOL bLossy = TRUE) { m_bIsLossy = bLossy; };
00373 BOOL IsAFractal() { return m_bIsAFractal; }
00374
00375 virtual BOOL IsBrowserPalette() = 0;
00376 virtual BOOL ArePalettesTheSame(const LPLOGPALETTE pLogPalette, const INT32 TransColour = -1) = 0;
00377
00378 virtual UINT32 GetHorizontalDPI() = 0;
00379 virtual UINT32 GetVerticalDPI() = 0;
00380
00381 virtual LPBITMAPINFO GetBitmapInfo() = 0;
00382 virtual LPRGBQUAD GetPaletteForBitmap() = 0;
00383 virtual LPBITMAPINFOHEADER GetBitmapInfoHeader() = 0;
00384 virtual void ReplaceBitmap(LPBYTE pBytes, LPBITMAPINFO pInfo) = 0;
00385
00386 virtual OILBitmap* MakeCopy() = 0;
00387
00388 void SetUsedByBrush(BOOL Used) { m_bUsedByBrush = Used;}
00389 BOOL IsUsedByBrush() { return m_bUsedByBrush; }
00390
00391 PORTNOTE("other","Removed XML stuff")
00392 #ifndef EXCLUDE_FROM_XARALX
00393 virtual void SetXPEInfo(OILBitmap* pMasterBitmap, IXMLDOMDocumentPtr pNewEditList);
00394 virtual void GetXPEInfo(OILBitmap*& refMasterBitmap,
00395 IXMLDOMDocumentPtr& refEditList,
00396 BOOL bEnsureList = FALSE);
00397 #endif
00398 virtual BOOL IsXPEMaster();
00399 virtual BOOL DestroyXPEInfo();
00400 virtual BOOL RemoveXPEBitmap();
00401 virtual BOOL RebuildXPEBitmap();
00402 virtual BOOL NeedsXPERebuild();
00403
00404 virtual void CopyFullyTransparentFrom(OILBitmap* pBitmap) = 0;
00405
00406 protected:
00407 String_256 m_BitmapName;
00408 UINT32 m_BitmapAnimDelay;
00409 BOOL m_bInterpolation;
00410 GIFDisposalMethod m_AnimationRestoreType;
00411 UINT32 m_LeftOffset;
00412 UINT32 m_TopOffset;
00413
00414
00415 OriginalBitmapRef m_OriginalBitmap;
00416
00417
00418 OILBitmap* m_pColourVersion;
00419 OILBitmap* m_pGreyscaleVersion;
00420 RGBQUAD* m_pContonePalette;
00421 BYTE* m_pGreyscaleTable;
00422
00423
00424 OILBitmap* m_pMasterBitmap;
00425 PORTNOTE("other","Removed XML stuff")
00426 #ifndef EXCLUDE_FROM_XARALX
00427 IXMLDOMDocumentPtr m_pEditList;
00428 #endif
00429
00430 BOOL m_bTemp : 1;
00431 BOOL m_bIsAFractal : 1;
00432 BOOL m_bIsGreyscale : 1;
00433 BOOL m_bUsedByBrush : 1;
00434 BOOL m_bNeedsXPERebuild : 1;
00435 BOOL m_bHidden : 1;
00436 BOOL m_bIsLossy : 1;
00437
00438 #ifdef _DEBUG
00439
00440 BOOL m_bIsAttached : 1;
00441 #endif
00442 };
00443
00444
00445
00446
00447
00448
00449
00450
00451
00452
00453
00454
00455
00456
00457
00458 class KernelBmpListItem : public ListItem
00459 {
00460 public:
00461 CC_DECLARE_DYNAMIC( KernelBmpListItem )
00462 KernelBmpListItem(KernelBitmap* pBmp = NULL)
00463 {
00464 m_pBmp = pBmp;
00465 }
00466
00467 KernelBitmap* m_pBmp;
00468 };
00469
00470
00471
00472
00473
00474
00475
00476
00477
00478
00479
00480
00481
00482
00483 class KernelBitmap : public ListItem
00484 {
00485 friend class BitmapList;
00486
00487 CC_DECLARE_DYNAMIC( KernelBitmap )
00488
00489 public:
00490 KernelBitmap( OILBitmap *pBitmap = NULL, BOOL Temp = FALSE );
00491 KernelBitmap( const KernelBitmap& );
00492 KernelBitmap( UINT32, UINT32, UINT32, UINT32, BOOL Temp = FALSE );
00493 ~KernelBitmap();
00494
00495 static KernelBitmap* MakeKernelBitmap(OILBitmap *pBitmap = NULL,
00496 Document *pDoc = NULL,
00497 BOOL bAlwaysNew = FALSE);
00498
00499 static void SetCreateTracker(List* pList)
00500 {
00501 s_pTrackerList = pList;
00502 }
00503 static List* s_pTrackerList;
00504
00505 INT32 operator==(const KernelBitmap&);
00506 KernelBitmap& operator=(const KernelBitmap&);
00507
00508 inline OILBitmap* GetActualBitmap() const { return ActualBitmap; }
00509
00510 BOOL IsOK() const;
00511
00512
00513 virtual BOOL WritePalette(BaseCamelotFilter *pFilter);
00514
00515 virtual BOOL Convert24To8(RGBTRIPLE *pPalette, UINT32 NumberOfPaletteEntries);
00516
00517
00518
00519 static BOOL ImportBitmap(CCLexFile* pFile, BaseBitmapFilter *pBitmapFilter, BaseCamelotFilter *pFilter,
00520 BOOL IsCompressed,
00521 RGBTRIPLE *pPalette, UINT32 NumberOfPaletteEntries,
00522 KernelBitmap** ppImportedBitmap, BOOL* IsNew);
00523
00524
00525 static BOOL ImportBitmap(Filter *pFilter, const BitmapInfo *pInfo, INT32 BitmapType,
00526 KernelBitmap**, BOOL*);
00527
00528 static KernelBitmap* TryAndUseExistingBitmap(OILBitmap* pOILBitmap, Document* pDoc,
00529 BOOL* IsNew);
00530
00531 inline void PlotPixel(INT32 x, INT32 y, Pixel32bpp NewValue);
00532 inline void PlotPixel(INT32 x, INT32 y, PixelGreyscale NewValue);
00533 inline Pixel32bpp ReadPixel32bpp(INT32 x, INT32 y, BOOL UsePalette = TRUE) const;
00534 inline INT32 ReturnPaletteIndexUsed( INT32 x, INT32 y ) const;
00535 inline PixelGreyscale ReadPixelGreyscale(INT32 x, INT32 y) const;
00536 ADDR GetBitmapBits() const;
00537
00538 BitmapList* GetParentBitmapList() { return m_pParentList; }
00539 BOOL IsUsedInDocument(Document* pDoc, BOOL bIncludeHidden = FALSE);
00540
00541 void Attach(BitmapList* = NULL);
00542 void Detach();
00543
00544 UINT32 GetWidth() const;
00545 UINT32 GetHeight() const;
00546 UINT32 GetBPP();
00547 UINT32 GetNumPaletteEntries() const;
00548
00549 INT32 GetRecommendedWidth();
00550 INT32 GetRecommendedHeight();
00551 void SetRecommendedWidth(INT32);
00552 void SetRecommendedHeight(INT32);
00553
00554 BOOL SetTransparencyIndex(INT32);
00555 BOOL GetTransparencyIndex(INT32* pIndex);
00556 BOOL IsTransparent();
00557
00558 BOOL IsDefaultBitmap();
00559 BOOL HasBeenDeleted();
00560 BOOL IsGreyscale();
00561 BOOL IsLossy();
00562
00563
00564 void SetOriginalSource(BitmapSource* pFileBuffer = NULL, BaseBitmapFilter* pImportFilter = NULL);
00565 BOOL GetOriginalSource(BitmapSource** ppFileBuffer = NULL, BaseBitmapFilter** ppImportFilter = NULL);
00566
00567
00568 BOOL CreateGreyscaleVersion(BOOL ForceGreyBmp = FALSE);
00569 BOOL DestroyGreyscaleVersion();
00570 OILBitmap* GetGreyscaleVersion(BOOL ForceGreyBmp = FALSE);
00571
00572 OILBitmap* ExtractOILBitmap();
00573 void GenerateGreyscaleTable();
00574
00575 BOOL SetAsFractal();
00576 BOOL SetAsGreyscale();
00577 BOOL SetAsLossy(BOOL bLossy = TRUE);
00578
00579 UINT32 GetDelay();
00580 void SetDelay(UINT32 Delay);
00581
00582 BOOL GetInterpolation();
00583 void SetInterpolation(BOOL bInterpolation);
00584
00585 void SetAnimationRestoreType(GIFDisposalMethod Type);
00586 GIFDisposalMethod GetAnimationRestoreType() const;
00587
00588 void SetLeftOffset(UINT32 LeftOffset);
00589 UINT32 GetLeftOffset() const;
00590 void SetTopOffset(UINT32 TopOffset);
00591 UINT32 GetTopOffset() const;
00592
00593 BOOL IsBrowserPalette() const;
00594 BOOL ArePalettesTheSame(const LPLOGPALETTE pLogPalette, const INT32 TransColour = -1);
00595
00596 UINT32 GetHorizontalDPI() const;
00597 UINT32 GetVerticalDPI() const;
00598
00599 void SetName(String_256& NewName);
00600 String_256& GetName();
00601
00602
00603 LPBITMAPINFO GetBitmapInfo();
00604 LPRGBQUAD GetPaletteForBitmap();
00605 LPBITMAPINFOHEADER GetBitmapInfoHeader();
00606
00607 void SetUsedByBrush(BOOL Used) { m_bUsedByBrush = Used;}
00608 BOOL IsUsedByBrush() { return m_bUsedByBrush;}
00609
00610 PORTNOTE("other","Removed XML stuff")
00611 #ifndef EXCLUDE_FROM_XARALX
00612 virtual void SetXPEInfo(KernelBitmap* pMasterBitmap, IXMLDOMDocumentPtr pNewEditList);
00613 virtual void GetXPEInfo(KernelBitmap*& refMasterBitmap,
00614 IXMLDOMDocumentPtr& refEditList,
00615 BOOL bEnsureList = FALSE);
00616 #endif
00617 virtual BOOL IsXPEMaster();
00618 virtual BOOL DestroyXPEInfo();
00619 virtual void ReplaceOILBitmap(LPBYTE pBits, LPBITMAPINFO pInfo);
00620
00621
00622
00623 #ifdef _DEBUG
00624 public:
00625 BOOL AttachDebugCopyToCurrentDocument(String_256 strName);
00626 #endif
00627
00628 public:
00629 OILBitmap *ActualBitmap;
00630
00631 protected:
00632 BitmapList* m_pParentList;
00633
00634 BOOL m_bDontDeleteActualBitmap : 1;
00635 BOOL m_bFractalAttached : 1;
00636 BOOL m_bUsedByBrush : 1;
00637
00638 };
00639
00640
00641
00642
00643
00644
00645
00646
00647
00648
00649
00650 class KernelBitmapRef : public CCObject
00651 {
00652 CC_DECLARE_DYNAMIC( KernelBitmapRef )
00653
00654 public:
00655 KernelBitmapRef();
00656 ~KernelBitmapRef();
00657
00658 INT32 operator==(const KernelBitmapRef&);
00659 KernelBitmapRef& operator=(KernelBitmapRef&);
00660
00661 void Attach(KernelBitmap*, Document* Doc = NULL);
00662 void Detach(BOOL bTryRemoveFromDoc = FALSE);
00663 void DeleteBmp();
00664
00665 void RemoveFromTree();
00666 void AddtoTree();
00667 BOOL IsHidden() { return m_bHidden; }
00668
00669 KernelBitmap* GetBitmap() { return m_pTheBitmap; }
00670 void SetBitmap(KernelBitmap*);
00671
00672 protected:
00673 KernelBitmap* m_pTheBitmap;
00674
00675 BOOL m_bHidden;
00676 };
00677
00678
00679
00680
00681
00682
00683
00684
00685
00686
00687
00688
00689
00690 class BitmapPtr : public ListItem
00691 {
00692 CC_DECLARE_DYNAMIC( BitmapPtr )
00693
00694 public:
00695 KernelBitmap* m_TheBitmap;
00696 };
00697
00698
00699
00700
00701
00702
00703
00704
00705
00706
00707
00708
00709
00710
00711
00712
00713
00714
00715
00716
00717
00718
00719
00720
00721
00722 inline void KernelBitmap::PlotPixel(INT32 x, INT32 y, Pixel32bpp NewValue)
00723 {
00724 ERROR3IF(ActualBitmap == NULL, "PlotPixel with no bitmap!");
00725 ActualBitmap->PlotPixel(x, y, NewValue);
00726 }
00727
00728
00729
00730
00731
00732
00733
00734
00735
00736
00737
00738
00739
00740
00741
00742
00743
00744
00745
00746
00747
00748
00749
00750
00751
00752
00753
00754
00755
00756 inline void KernelBitmap::PlotPixel(INT32 x, INT32 y, PixelGreyscale NewValue)
00757 {
00758 ERROR3IF(ActualBitmap == NULL, "PlotPixel with no bitmap!");
00759 ActualBitmap->PlotPixel(x, y, NewValue);
00760 }
00761
00762
00763
00764
00765
00766
00767
00768
00769
00770
00771
00772
00773
00774
00775
00776
00777
00778
00779
00780
00781
00782
00783
00784
00785
00786
00787
00788
00789
00790
00791
00792
00793 inline Pixel32bpp KernelBitmap::ReadPixel32bpp(INT32 x, INT32 y, BOOL UsePalette) const
00794 {
00795 ERROR3IF(ActualBitmap == NULL, "PlotPixel with no bitmap!");
00796 return(ActualBitmap->ReadPixel32bpp(x, y));
00797 }
00798
00799
00800
00801 inline INT32 KernelBitmap::ReturnPaletteIndexUsed( INT32 x, INT32 y ) const
00802 {
00803 ERROR3IF(ActualBitmap == NULL, "Can't do anything without a bitmap");
00804 return(ActualBitmap->ReturnPaletteIndexUsed(x, y));
00805 }
00806
00807
00808
00809
00810
00811
00812
00813
00814
00815
00816
00817
00818
00819
00820
00821
00822
00823
00824
00825
00826
00827
00828
00829
00830
00831
00832
00833
00834
00835
00836 inline PixelGreyscale KernelBitmap::ReadPixelGreyscale(INT32 x, INT32 y) const
00837 {
00838 ERROR3IF(ActualBitmap == NULL, "PlotPixel with no bitmap!");
00839 return(ActualBitmap->ReadPixelGreyscale(x, y));
00840 }
00841
00842
00843 #endif