JUCE  v6.1.6 (6.0.8-1114)
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::LowLevelGraphicsSoftwareRenderer Class Referenceabstract

A lowest-common-denominator implementation of LowLevelGraphicsContext that does all its rendering in memory. More...

#include <juce_LowLevelGraphicsSoftwareRenderer.h>

Inheritance diagram for juce::LowLevelGraphicsSoftwareRenderer:
Collaboration diagram for juce::LowLevelGraphicsSoftwareRenderer:

Public Member Functions

 LowLevelGraphicsSoftwareRenderer (const Image &imageToRenderOnto)
 Creates a context to render into an image. More...
 
 LowLevelGraphicsSoftwareRenderer (const Image &imageToRenderOnto, Point< int > origin, const RectangleList< int > &initialClip)
 Creates a context to render into a clipped subsection of an image. More...
 
 ~LowLevelGraphicsSoftwareRenderer () override
 Destructor. More...
 
void addTransform (const AffineTransform &t) override
 
void beginTransparencyLayer (float opacity) override
 
bool clipRegionIntersects (const Rectangle< int > &r) override
 
void clipToImageAlpha (const Image &im, const AffineTransform &t) override
 
void clipToPath (const Path &path, const AffineTransform &t) override
 
bool clipToRectangle (const Rectangle< int > &r) override
 
bool clipToRectangleList (const RectangleList< int > &r) override
 
void drawGlyph (int glyphNumber, const AffineTransform &t) override
 
void drawImage (const Image &im, const AffineTransform &t) override
 
void drawLine (const Line< float > &line) override
 
virtual bool drawTextLayout (const AttributedString &, const Rectangle< float > &)
 
void endTransparencyLayer () override
 
void excludeClipRectangle (const Rectangle< int > &r) override
 
void fillPath (const Path &path, const AffineTransform &t) override
 
void fillRect (const Rectangle< float > &r) override
 
void fillRect (const Rectangle< int > &r, bool replace) override
 
void fillRectList (const RectangleList< float > &list) override
 
virtual Rectangle< intgetClipBounds () const =0
 
Rectangle< intgetClipBounds () const override
 
const FontgetFont () override
 
float getPhysicalPixelScaleFactor () override
 
virtual bool isClipEmpty () const =0
 
bool isClipEmpty () const override
 
virtual bool isVectorDevice () const =0
 Returns true if this device is vector-based, e.g. More...
 
bool isVectorDevice () const override
 Returns true if this device is vector-based, e.g. More...
 
void restoreState () override
 
void saveState () override
 
void setFill (const FillType &fillType) override
 
void setFont (const Font &newFont) override
 
void setInterpolationQuality (Graphics::ResamplingQuality quality) override
 
void setOpacity (float newOpacity) override
 
void setOrigin (Point< int > o) override
 Moves the origin to a new position. More...
 

Protected Attributes

RenderingHelpers::SavedStateStack< RenderingHelpers::SoftwareRendererSavedStatestack
 

Detailed Description

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.

@tags{Graphics}

Constructor & Destructor Documentation

◆ LowLevelGraphicsSoftwareRenderer() [1/2]

juce::LowLevelGraphicsSoftwareRenderer::LowLevelGraphicsSoftwareRenderer ( const Image imageToRenderOnto)

Creates a context to render into an image.

◆ LowLevelGraphicsSoftwareRenderer() [2/2]

juce::LowLevelGraphicsSoftwareRenderer::LowLevelGraphicsSoftwareRenderer ( const Image imageToRenderOnto,
Point< int origin,
const RectangleList< int > &  initialClip 
)

Creates a context to render into a clipped subsection of an image.

◆ ~LowLevelGraphicsSoftwareRenderer()

juce::LowLevelGraphicsSoftwareRenderer::~LowLevelGraphicsSoftwareRenderer ( )
override

Destructor.

Member Function Documentation

◆ addTransform()

◆ beginTransparencyLayer()

void juce::RenderingHelpers::StackBasedLowLevelGraphicsContext< RenderingHelpers::SoftwareRendererSavedState >::beginTransparencyLayer ( float  opacity)
inlineoverridevirtualinherited

◆ clipRegionIntersects()

◆ clipToImageAlpha()

void juce::RenderingHelpers::StackBasedLowLevelGraphicsContext< RenderingHelpers::SoftwareRendererSavedState >::clipToImageAlpha ( const Image im,
const AffineTransform t 
)
inlineoverridevirtualinherited

◆ clipToPath()

void juce::RenderingHelpers::StackBasedLowLevelGraphicsContext< RenderingHelpers::SoftwareRendererSavedState >::clipToPath ( const Path path,
const AffineTransform t 
)
inlineoverridevirtualinherited

◆ clipToRectangle()

◆ clipToRectangleList()

◆ drawGlyph()

void juce::RenderingHelpers::StackBasedLowLevelGraphicsContext< RenderingHelpers::SoftwareRendererSavedState >::drawGlyph ( int  glyphNumber,
const AffineTransform t 
)
inlineoverridevirtualinherited

◆ drawImage()

void juce::RenderingHelpers::StackBasedLowLevelGraphicsContext< RenderingHelpers::SoftwareRendererSavedState >::drawImage ( const Image im,
const AffineTransform t 
)
inlineoverridevirtualinherited

◆ drawLine()

◆ drawTextLayout()

virtual bool juce::LowLevelGraphicsContext::drawTextLayout ( const AttributedString ,
const Rectangle< float > &   
)
inlinevirtualinherited

◆ endTransparencyLayer()

◆ excludeClipRectangle()

void juce::RenderingHelpers::StackBasedLowLevelGraphicsContext< RenderingHelpers::SoftwareRendererSavedState >::excludeClipRectangle ( const Rectangle< int > &  r)
inlineoverridevirtualinherited

◆ fillPath()

void juce::RenderingHelpers::StackBasedLowLevelGraphicsContext< RenderingHelpers::SoftwareRendererSavedState >::fillPath ( const Path path,
const AffineTransform t 
)
inlineoverridevirtualinherited

◆ fillRect() [1/2]

◆ fillRect() [2/2]

void juce::RenderingHelpers::StackBasedLowLevelGraphicsContext< RenderingHelpers::SoftwareRendererSavedState >::fillRect ( const Rectangle< int > &  r,
bool  replace 
)
inlineoverridevirtualinherited

◆ fillRectList()

◆ getClipBounds() [1/2]

◆ getClipBounds() [2/2]

◆ getFont()

◆ getPhysicalPixelScaleFactor()

◆ isClipEmpty() [1/2]

◆ isClipEmpty() [2/2]

◆ isVectorDevice() [1/2]

virtual bool juce::LowLevelGraphicsContext::isVectorDevice ( ) const
pure virtualinherited

◆ isVectorDevice() [2/2]

Returns true if this device is vector-based, e.g.

a printer.

◆ restoreState()

◆ saveState()

◆ setFill()

◆ setFont()

◆ setInterpolationQuality()

◆ setOpacity()

◆ setOrigin()

Moves the origin to a new position.

The coordinates are relative to the current origin, and indicate the new position of (0, 0).

Implements juce::LowLevelGraphicsContext.

Member Data Documentation

◆ stack


The documentation for this class was generated from the following file: