bitfilt.cpp File Reference

(r1785/r1762)

#include "camtypes.h"
#include "bitfilt.h"
#include "layer.h"
#include "page.h"
#include "grndbmp.h"
#include "osrndrgn.h"
#include "nodebmp.h"
#include "bitmpinf.h"
#include "progress.h"
#include "prvwflt.h"
#include "bmpexdoc.h"
#include "impexpop.h"
#include "zoomops.h"
#include "nodetxtl.h"
#include "qualattr.h"
#include "ccbuffil.h"
#include "bmpprefs.h"
#include "exjpeg.h"
#include "bmapprev.h"
#include "filtimag.h"
#include "filtrmgr.h"
#include "htmlfltr.h"
#include "sprdmsg.h"
#include "layermsg.h"
#include "fileutil.h"
#include "gpalopt.h"
#include "colplate.h"
#include "fillattr2.h"
#include "nodetext.h"

Go to the source code of this file.

Defines

#define new   CAM_DEBUG_NEW
#define PIXELWIDTH   750
 Prepare to export bitmap data using this filter. This sets up the filter to a sensible state for reading. Assumes file is opened by caller. This should NOT be overridden by inherited classes.
#define PIXELHEIGHT   750
#define INFLATE_ONLY

Functions

void PixelAlignedFiddle (DocRect *)

Variables

const INT32 WEB_SNAP_OPTIMISED_DISTANCE_SQUARED = 25


Define Documentation

#define INFLATE_ONLY
 

#define new   CAM_DEBUG_NEW
 

Definition at line 171 of file bitfilt.cpp.

#define PIXELHEIGHT   750
 

Definition at line 1919 of file bitfilt.cpp.

#define PIXELWIDTH   750
 

Prepare to export bitmap data using this filter. This sets up the filter to a sensible state for reading. Assumes file is opened by caller. This should NOT be overridden by inherited classes.

Author:
Andy_Pennell (Xara Group Ltd) <camelotdev@xara.com>
Date:
28/6/94
Parameters:
Pointer to the spread, colour depth in bpp, resolution in dpi and a selection [INPUTS] flag which indicates whether there is a selection present (=1), no selection (=0) and if there is a selection whether we want to export the spread instead (=2).
Returns:
TRUE if succeeded, FALSE if not (e.g. no memory)

Errors: Out of memory.

See also:
BaseBitmapFilter::DoImport; BaseBitmapFilter::CleanUpAfterImport Scope: Private

Definition at line 1918 of file bitfilt.cpp.


Function Documentation

void PixelAlignedFiddle DocRect  ) 
 

Definition at line 5156 of file bitfilt.cpp.

05157 {
05158     INT32 lox, loy, hix, hiy = 0;
05159 
05160 #define INFLATE_ONLY
05161 
05162 #ifdef INFLATE_ONLY
05163     INT32 fiddle = 0; // extends the export clipping box to surround the exported image
05164                      // maintaining the screen antialiasing
05165 #else
05166     INT32 fiddle = 375; // shaves small amounts of aa if we think we dont need it
05167 #endif
05168     
05169     lox = ((r->lo.x + fiddle)/750) * 750;
05170     loy = ((r->lo.y + fiddle)/750) * 750;
05171     hix = ((r->hi.x + 749 - fiddle)/750) * 750;
05172     hiy = ((r->hi.y + 749 - fiddle)/750) * 750;
05173 
05174     DocRect newr(lox, loy, hix, hiy);
05175     *r = newr;
05176 }


Variable Documentation

const INT32 WEB_SNAP_OPTIMISED_DISTANCE_SQUARED = 25
 

Definition at line 199 of file bitfilt.cpp.


Generated on Sat Nov 10 03:49:04 2007 for Camelot by  doxygen 1.4.4