#include <makebmp.h>
Inheritance diagram for MakeBitmapExportOptions:
Public Member Functions | |
MakeBitmapExportOptions () | |
MakeBitmapExportOptions (const FilterType FilterID, const StringBase *pFilterName) | |
Default constructor for a MakeBitmapExportOptions object (mainly to allow CreateBitmapCopy to store its own defaults). | |
virtual BOOL | RetrieveDefaults () |
Compares the contents of this and pOther objects See BitmapExportInfo for interface details: gets GIF specific preferences. | |
virtual BOOL | SetAsDefaults () const |
Provides additional implementation to set GIF specific info as defaults See Also: BitmapExportInfo::SetAsDefaults(). | |
BitmapExportOptions * | MakeCopy () |
Makes a copy object of this object See Also: BitmapExportOptions::CopyFrom(); BitmapExportOptions::MakeCopy();. | |
virtual BOOL | CopyFrom (BitmapExportOptions *pOther) |
Sets the contents of this object from the passed object See Also: BitmapExportOptions::MakeCopy(). | |
Static Public Member Functions | |
static BOOL | Declare () |
To declare preferences associated with these export options. | |
Static Protected Attributes | |
static DPI | g_Dpi = 96.0 |
static BMP_DEPTH | g_Depth = 8 |
static DITHER | g_Dither = XARADITHER_ERROR_DIFFUSION |
static PALETTE | g_Palette = PAL_OPTIMISED |
static BOOL | g_TranspBkGnd = TRUE |
Definition at line 145 of file makebmp.h.
|
Definition at line 153 of file makebmp.h.
|
|
Default constructor for a MakeBitmapExportOptions object (mainly to allow CreateBitmapCopy to store its own defaults).
Definition at line 360 of file makebmp.cpp. 00361 : 00362 MaskedFilterExportOptions(_R(IDD_EXPORTBMPOPTS), FilterID, pFilterName) 00363 { 00364 }
|
|
Sets the contents of this object from the passed object See Also: BitmapExportOptions::MakeCopy().
Reimplemented from MaskedFilterExportOptions. Definition at line 401 of file makebmp.cpp. 00402 { 00403 // copy the base class first 00404 if (!MaskedFilterExportOptions::CopyFrom(pSource)) 00405 return FALSE; 00406 00407 // must be the same class, otherwise the base class function above returns FALSE 00408 MakeBitmapExportOptions *pOther = (MakeBitmapExportOptions *)pSource; 00409 00410 return TRUE; 00411 }
|
|
To declare preferences associated with these export options.
Reimplemented from MaskedFilterExportOptions. Definition at line 334 of file makebmp.cpp. 00335 { 00336 if (Camelot.DeclareSection("Filters", 10)) 00337 { 00338 Camelot.DeclarePref( NULL, "CreateBitmapDPI", &g_Dpi, 1, 3000 ); 00339 Camelot.DeclarePref( NULL, "CreateBitmapDepth", &g_Depth, 1, 32 ); 00340 Camelot.DeclarePref( NULL, "CreateBitmapDither", (INT32*)&g_Dither, 0, XARADITHER_MAX ); 00341 Camelot.DeclarePref( NULL, "CreateBitmapPalette", (INT32*)&g_Palette, 0, 1 ); 00342 Camelot.DeclarePref( NULL, "CreateBitmapBkGnd", &g_TranspBkGnd, FALSE, TRUE ); 00343 } 00344 00345 // All ok 00346 return TRUE; 00347 }
|
|
Makes a copy object of this object See Also: BitmapExportOptions::CopyFrom(); BitmapExportOptions::MakeCopy();.
Reimplemented from BitmapExportOptions. Definition at line 376 of file makebmp.cpp. 00377 { 00378 // Get the runtime class info on this object 00379 CCRuntimeClass *pCCRuntimeClass = GetRuntimeClass(); 00380 00381 // Create another object of the same type 00382 MakeBitmapExportOptions *temp = (MakeBitmapExportOptions *) pCCRuntimeClass->CreateObject(); 00383 00384 if (temp != NULL) 00385 temp->CopyFrom(this); // copy the contents accross 00386 00387 return temp; 00388 }
|
|
Compares the contents of this and pOther objects See BitmapExportInfo for interface details: gets GIF specific preferences.
Reimplemented from MaskedFilterExportOptions. Definition at line 451 of file makebmp.cpp. 00452 { 00453 BOOL ok = FALSE; 00454 00455 if (MaskedFilterExportOptions::RetrieveDefaults()) 00456 { 00457 SetDPI(g_Dpi); 00458 SetDepth(g_Depth); 00459 SetDither(g_Dither); 00460 ok = TRUE; 00461 } 00462 00463 return ok; 00464 }
|
|
Provides additional implementation to set GIF specific info as defaults See Also: BitmapExportInfo::SetAsDefaults().
Reimplemented from MaskedFilterExportOptions. Definition at line 477 of file makebmp.cpp. 00478 { 00479 BOOL ok = FALSE; 00480 00481 if (MaskedFilterExportOptions::SetAsDefaults()) 00482 { 00483 g_Dpi = GetDPI(); 00484 g_Depth = GetDepth(); 00485 g_Dither = GetDither(); 00486 g_TranspBkGnd = WantTransparent(); 00487 ok = TRUE; 00488 } 00489 00490 return ok; 00491 }
|
|
|
|
Reimplemented from MaskedFilterExportOptions. |
|
|
|
Reimplemented from MaskedFilterExportOptions. |
|
|