#include <fillattr2.h>
Inheritance diagram for AttrBitmapChange:
Public Member Functions | |
AttrBitmapChange () | |
virtual UINT32 | GetAttrNameID (void) |
Returns a string resource ID describing the attribute. | |
virtual AttributeValue * | GetAttributeValue () |
virtual AttrFillGeometry * | MutateFill (AttrFillGeometry *FillToMutate) |
Changes the bitmap for a fill. | |
Protected Attributes | |
BitmapFillAttribute | Value |
Definition at line 204 of file fillattr2.h.
|
Definition at line 209 of file fillattr2.h. 00209 : AttrValueChange() {}
|
|
Implements AttrValueChange. Definition at line 213 of file fillattr2.h. 00213 { return &Value; }
|
|
Returns a string resource ID describing the attribute.
Reimplemented from AttrValueChange. Reimplemented in AttrBitmapTessChange, and AttrBitmapDpiChange. Definition at line 4389 of file fillattr.cpp. 04390 { 04391 return (_R(IDS_BITMAP_CHANGE)); 04392 }
|
|
Changes the bitmap for a fill.
Reimplemented from AttrValueChange. Reimplemented in AttrBitmapTessChange, and AttrBitmapDpiChange. Definition at line 4110 of file fillattr.cpp. 04111 { 04112 #if !defined(EXCLUDE_FROM_RALPH) 04113 // Make a copy of this Fill to change 04114 AttrFillGeometry* NewFill = (AttrFillGeometry*)FillToMutate->SimpleCopy(); 04115 if (NewFill == NULL) 04116 return NULL; 04117 04118 /* 04119 INT32 OldBPP; 04120 04121 if (NewFill->GetBitmap()) 04122 OldBPP = NewFill->GetBitmap()->GetBPP(); 04123 else 04124 OldBPP = 24; 04125 04126 INT32 NewBPP = this->GetBitmap()->GetBPP(); 04127 04128 if (OldBPP <= 8 && NewBPP > 8) 04129 { 04130 // Remove the end point blobs if necessary 04131 FillToMutate->DrawEndBlobs(); 04132 } 04133 */ 04134 04135 NewFill->CopyBitmap(GetBitmap()); 04136 04137 return NewFill; 04138 #else 04139 return NULL; 04140 #endif 04141 }
|
|
Definition at line 217 of file fillattr2.h. |