An implementation of LowLevelGraphicsContext that turns the drawing operations into a PostScript document.
More...
Inherits LowLevelGraphicsContext.
|
| | LowLevelGraphicsPostScriptRenderer (OutputStream &resultingPostScript, const String &documentTitle, int totalWidth, int totalHeight) |
| |
| | ~LowLevelGraphicsPostScriptRenderer () |
| |
| bool | isVectorDevice () const |
| | Returns true if this device is vector-based, e.g.
|
| |
| void | setOrigin (int x, int y) |
| | Moves the origin to a new position.
|
| |
| void | addTransform (const AffineTransform &transform) |
| |
| float | getScaleFactor () |
| |
| bool | clipToRectangle (const Rectangle< int > &r) |
| |
| bool | clipToRectangleList (const RectangleList &clipRegion) |
| |
| void | excludeClipRectangle (const Rectangle< int > &r) |
| |
| void | clipToPath (const Path &path, const AffineTransform &transform) |
| |
| void | clipToImageAlpha (const Image &sourceImage, const AffineTransform &transform) |
| |
| void | saveState () |
| |
| void | restoreState () |
| |
| void | beginTransparencyLayer (float opacity) |
| |
| void | endTransparencyLayer () |
| |
| bool | clipRegionIntersects (const Rectangle< int > &r) |
| |
| Rectangle< int > | getClipBounds () const |
| |
| bool | isClipEmpty () const |
| |
| void | setFill (const FillType &fillType) |
| |
| void | setOpacity (float opacity) |
| |
| void | setInterpolationQuality (Graphics::ResamplingQuality quality) |
| |
| void | fillRect (const Rectangle< int > &r, bool replaceExistingContents) |
| |
| void | fillPath (const Path &path, const AffineTransform &transform) |
| |
| void | drawImage (const Image &sourceImage, const AffineTransform &transform) |
| |
| void | drawLine (const Line< float > &line) |
| |
| void | drawVerticalLine (int x, float top, float bottom) |
| |
| void | drawHorizontalLine (int x, float top, float bottom) |
| |
| const Font & | getFont () |
| |
| void | setFont (const Font &newFont) |
| |
| void | drawGlyph (int glyphNumber, const AffineTransform &transform) |
| |
| virtual | ~LowLevelGraphicsContext () |
| |
| virtual float | getTargetDeviceScaleFactor () |
| |
| virtual bool | drawTextLayout (const AttributedString &, const Rectangle< float > &) |
| |
An implementation of LowLevelGraphicsContext that turns the drawing operations into a PostScript document.
| LowLevelGraphicsPostScriptRenderer::LowLevelGraphicsPostScriptRenderer |
( |
OutputStream & |
resultingPostScript, |
|
|
const String & |
documentTitle, |
|
|
int |
totalWidth, |
|
|
int |
totalHeight |
|
) |
| |
| LowLevelGraphicsPostScriptRenderer::~LowLevelGraphicsPostScriptRenderer |
( |
| ) |
|
| bool LowLevelGraphicsPostScriptRenderer::isVectorDevice |
( |
| ) |
const |
|
virtual |
| void LowLevelGraphicsPostScriptRenderer::setOrigin |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
|
virtual |
Moves the origin to a new position.
The co-ords are relative to the current origin, and indicate the new position of (0, 0).
Implements LowLevelGraphicsContext.
| void LowLevelGraphicsPostScriptRenderer::addTransform |
( |
const AffineTransform & |
transform | ) |
|
|
virtual |
| float LowLevelGraphicsPostScriptRenderer::getScaleFactor |
( |
| ) |
|
|
virtual |
| bool LowLevelGraphicsPostScriptRenderer::clipToRectangle |
( |
const Rectangle< int > & |
r | ) |
|
|
virtual |
| bool LowLevelGraphicsPostScriptRenderer::clipToRectangleList |
( |
const RectangleList & |
clipRegion | ) |
|
|
virtual |
| void LowLevelGraphicsPostScriptRenderer::excludeClipRectangle |
( |
const Rectangle< int > & |
r | ) |
|
|
virtual |
| void LowLevelGraphicsPostScriptRenderer::clipToPath |
( |
const Path & |
path, |
|
|
const AffineTransform & |
transform |
|
) |
| |
|
virtual |
| void LowLevelGraphicsPostScriptRenderer::clipToImageAlpha |
( |
const Image & |
sourceImage, |
|
|
const AffineTransform & |
transform |
|
) |
| |
|
virtual |
| void LowLevelGraphicsPostScriptRenderer::saveState |
( |
| ) |
|
|
virtual |
| void LowLevelGraphicsPostScriptRenderer::restoreState |
( |
| ) |
|
|
virtual |
| void LowLevelGraphicsPostScriptRenderer::beginTransparencyLayer |
( |
float |
opacity | ) |
|
|
virtual |
| void LowLevelGraphicsPostScriptRenderer::endTransparencyLayer |
( |
| ) |
|
|
virtual |
| bool LowLevelGraphicsPostScriptRenderer::clipRegionIntersects |
( |
const Rectangle< int > & |
r | ) |
|
|
virtual |
| Rectangle<int> LowLevelGraphicsPostScriptRenderer::getClipBounds |
( |
| ) |
const |
|
virtual |
| bool LowLevelGraphicsPostScriptRenderer::isClipEmpty |
( |
| ) |
const |
|
virtual |
| void LowLevelGraphicsPostScriptRenderer::setFill |
( |
const FillType & |
fillType | ) |
|
|
virtual |
| void LowLevelGraphicsPostScriptRenderer::setOpacity |
( |
float |
opacity | ) |
|
|
virtual |
| void LowLevelGraphicsPostScriptRenderer::fillRect |
( |
const Rectangle< int > & |
r, |
|
|
bool |
replaceExistingContents |
|
) |
| |
|
virtual |
| void LowLevelGraphicsPostScriptRenderer::fillPath |
( |
const Path & |
path, |
|
|
const AffineTransform & |
transform |
|
) |
| |
|
virtual |
| void LowLevelGraphicsPostScriptRenderer::drawImage |
( |
const Image & |
sourceImage, |
|
|
const AffineTransform & |
transform |
|
) |
| |
|
virtual |
| void LowLevelGraphicsPostScriptRenderer::drawLine |
( |
const Line< float > & |
line | ) |
|
|
virtual |
| void LowLevelGraphicsPostScriptRenderer::drawVerticalLine |
( |
int |
x, |
|
|
float |
top, |
|
|
float |
bottom |
|
) |
| |
|
virtual |
| void LowLevelGraphicsPostScriptRenderer::drawHorizontalLine |
( |
int |
x, |
|
|
float |
top, |
|
|
float |
bottom |
|
) |
| |
|
virtual |
| const Font& LowLevelGraphicsPostScriptRenderer::getFont |
( |
| ) |
|
|
virtual |
| void LowLevelGraphicsPostScriptRenderer::setFont |
( |
const Font & |
newFont | ) |
|
|
virtual |
| void LowLevelGraphicsPostScriptRenderer::drawGlyph |
( |
int |
glyphNumber, |
|
|
const AffineTransform & |
transform |
|
) |
| |
|
virtual |
| void LowLevelGraphicsPostScriptRenderer::writeClip |
( |
| ) |
|
|
protected |
| void LowLevelGraphicsPostScriptRenderer::writeColour |
( |
const Colour & |
colour | ) |
|
|
protected |
| void LowLevelGraphicsPostScriptRenderer::writePath |
( |
const Path & |
path | ) |
const |
|
protected |
| void LowLevelGraphicsPostScriptRenderer::writeXY |
( |
float |
x, |
|
|
float |
y |
|
) |
| const |
|
protected |
| void LowLevelGraphicsPostScriptRenderer::writeTransform |
( |
const AffineTransform & |
trans | ) |
const |
|
protected |
| void LowLevelGraphicsPostScriptRenderer::writeImage |
( |
const Image & |
im, |
|
|
int |
sx, |
|
|
int |
sy, |
|
|
int |
maxW, |
|
|
int |
maxH |
|
) |
| const |
|
protected |
| int LowLevelGraphicsPostScriptRenderer::totalWidth |
|
protected |
| int LowLevelGraphicsPostScriptRenderer::totalHeight |
|
protected |
| bool LowLevelGraphicsPostScriptRenderer::needToClip |
|
protected |
| Colour LowLevelGraphicsPostScriptRenderer::lastColour |
|
protected |
The documentation for this class was generated from the following file: