A lowest-common-denominator implementation of LowLevelGraphicsContext that does all its rendering in memory. More...
Inherits LowLevelGraphicsContext.
Public Member Functions | |
| LowLevelGraphicsSoftwareRenderer (const Image &imageToRenderOn) | |
| LowLevelGraphicsSoftwareRenderer (const Image &imageToRenderOn, const Point< int > &origin, const RectangleList &initialClip) | |
| ~LowLevelGraphicsSoftwareRenderer () | |
| 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 &) |
| float | getScaleFactor () |
| bool | clipToRectangle (const Rectangle< int > &) |
| bool | clipToRectangleList (const RectangleList &) |
| void | excludeClipRectangle (const Rectangle< int > &) |
| void | clipToPath (const Path &, const AffineTransform &) |
| void | clipToImageAlpha (const Image &, const AffineTransform &) |
| bool | clipRegionIntersects (const Rectangle< int > &) |
| Rectangle< int > | getClipBounds () const |
| bool | isClipEmpty () const |
| void | saveState () |
| void | restoreState () |
| void | beginTransparencyLayer (float opacity) |
| void | endTransparencyLayer () |
| void | setFill (const FillType &) |
| void | setOpacity (float opacity) |
| void | setInterpolationQuality (Graphics::ResamplingQuality) |
| void | fillRect (const Rectangle< int > &, bool replaceExistingContents) |
| void | fillPath (const Path &, const AffineTransform &) |
| void | drawImage (const Image &, const AffineTransform &) |
| void | drawLine (const Line< float > &line) |
| void | drawVerticalLine (int x, float top, float bottom) |
| void | drawHorizontalLine (int x, float top, float bottom) |
| void | setFont (const Font &) |
| const Font & | getFont () |
| void | drawGlyph (int glyphNumber, float x, float y) |
| void | drawGlyph (int glyphNumber, const AffineTransform &) |
Protected Member Functions | |
| JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (LowLevelGraphicsSoftwareRenderer) | |
Protected Attributes | |
| RenderingHelpers::SavedStateStack < SavedState > | savedState |
A lowest-common-denominator implementation of LowLevelGraphicsContext that does all its rendering in memory.
User code is not supposed to create instances of this class directly - do all your rendering via the Graphics class instead.
| LowLevelGraphicsSoftwareRenderer::LowLevelGraphicsSoftwareRenderer | ( | const Image & | imageToRenderOn | ) |
| LowLevelGraphicsSoftwareRenderer::LowLevelGraphicsSoftwareRenderer | ( | const Image & | imageToRenderOn, |
| const Point< int > & | origin, | ||
| const RectangleList & | initialClip | ||
| ) |
| bool LowLevelGraphicsSoftwareRenderer::isVectorDevice | ( | ) | const [virtual] |
| void LowLevelGraphicsSoftwareRenderer::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 LowLevelGraphicsSoftwareRenderer::addTransform | ( | const AffineTransform & | ) | [virtual] |
Implements LowLevelGraphicsContext.
| float LowLevelGraphicsSoftwareRenderer::getScaleFactor | ( | ) | [virtual] |
Implements LowLevelGraphicsContext.
| bool LowLevelGraphicsSoftwareRenderer::clipToRectangle | ( | const Rectangle< int > & | ) | [virtual] |
Implements LowLevelGraphicsContext.
| bool LowLevelGraphicsSoftwareRenderer::clipToRectangleList | ( | const RectangleList & | ) | [virtual] |
Implements LowLevelGraphicsContext.
| void LowLevelGraphicsSoftwareRenderer::excludeClipRectangle | ( | const Rectangle< int > & | ) | [virtual] |
Implements LowLevelGraphicsContext.
| void LowLevelGraphicsSoftwareRenderer::clipToPath | ( | const Path & | , |
| const AffineTransform & | |||
| ) | [virtual] |
Implements LowLevelGraphicsContext.
| void LowLevelGraphicsSoftwareRenderer::clipToImageAlpha | ( | const Image & | , |
| const AffineTransform & | |||
| ) | [virtual] |
Implements LowLevelGraphicsContext.
| bool LowLevelGraphicsSoftwareRenderer::clipRegionIntersects | ( | const Rectangle< int > & | ) | [virtual] |
Implements LowLevelGraphicsContext.
| Rectangle<int> LowLevelGraphicsSoftwareRenderer::getClipBounds | ( | ) | const [virtual] |
Implements LowLevelGraphicsContext.
| bool LowLevelGraphicsSoftwareRenderer::isClipEmpty | ( | ) | const [virtual] |
Implements LowLevelGraphicsContext.
| void LowLevelGraphicsSoftwareRenderer::saveState | ( | ) | [virtual] |
Implements LowLevelGraphicsContext.
| void LowLevelGraphicsSoftwareRenderer::restoreState | ( | ) | [virtual] |
Implements LowLevelGraphicsContext.
| void LowLevelGraphicsSoftwareRenderer::beginTransparencyLayer | ( | float | opacity | ) | [virtual] |
Implements LowLevelGraphicsContext.
| void LowLevelGraphicsSoftwareRenderer::endTransparencyLayer | ( | ) | [virtual] |
Implements LowLevelGraphicsContext.
| void LowLevelGraphicsSoftwareRenderer::setFill | ( | const FillType & | ) | [virtual] |
Implements LowLevelGraphicsContext.
| void LowLevelGraphicsSoftwareRenderer::setOpacity | ( | float | opacity | ) | [virtual] |
Implements LowLevelGraphicsContext.
| void LowLevelGraphicsSoftwareRenderer::setInterpolationQuality | ( | Graphics::ResamplingQuality | ) | [virtual] |
Implements LowLevelGraphicsContext.
| void LowLevelGraphicsSoftwareRenderer::fillRect | ( | const Rectangle< int > & | , |
| bool | replaceExistingContents | ||
| ) | [virtual] |
Implements LowLevelGraphicsContext.
| void LowLevelGraphicsSoftwareRenderer::fillPath | ( | const Path & | , |
| const AffineTransform & | |||
| ) | [virtual] |
Implements LowLevelGraphicsContext.
| void LowLevelGraphicsSoftwareRenderer::drawImage | ( | const Image & | , |
| const AffineTransform & | |||
| ) | [virtual] |
Implements LowLevelGraphicsContext.
| void LowLevelGraphicsSoftwareRenderer::drawLine | ( | const Line< float > & | line | ) | [virtual] |
Implements LowLevelGraphicsContext.
| void LowLevelGraphicsSoftwareRenderer::drawVerticalLine | ( | int | x, |
| float | top, | ||
| float | bottom | ||
| ) | [virtual] |
Implements LowLevelGraphicsContext.
| void LowLevelGraphicsSoftwareRenderer::drawHorizontalLine | ( | int | x, |
| float | top, | ||
| float | bottom | ||
| ) | [virtual] |
Implements LowLevelGraphicsContext.
| void LowLevelGraphicsSoftwareRenderer::setFont | ( | const Font & | ) | [virtual] |
Implements LowLevelGraphicsContext.
| const Font& LowLevelGraphicsSoftwareRenderer::getFont | ( | ) | [virtual] |
Implements LowLevelGraphicsContext.
| void LowLevelGraphicsSoftwareRenderer::drawGlyph | ( | int | glyphNumber, |
| float | x, | ||
| float | y | ||
| ) |
| void LowLevelGraphicsSoftwareRenderer::drawGlyph | ( | int | glyphNumber, |
| const AffineTransform & | |||
| ) | [virtual] |
Implements LowLevelGraphicsContext.
| LowLevelGraphicsSoftwareRenderer::JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR | ( | LowLevelGraphicsSoftwareRenderer | ) | [protected] |
RenderingHelpers::SavedStateStack<SavedState> LowLevelGraphicsSoftwareRenderer::savedState [protected] |