52 void setImage (
const Image& imageToUse);
58 void setOpacity (
float newOpacity);
72 void setOverlayColour (
Colour newOverlayColour);
93 bool hitTest (
int x,
int y)
override;
99 Path getOutlineAsPath()
const override;
105 bool setImageInternal (
const Image&);
109 float opacity = 1.0f;
110 Colour overlayColour { 0 };
111 Parallelogram<float> bounds;
113 DrawableImage& operator= (
const DrawableImage&);
Represents a colour, also including a transparency value.
A drawable object which is a bitmap image.
Colour getOverlayColour() const noexcept
Returns the overlay colour.
Parallelogram< float > getBoundingBox() const noexcept
Returns the position to which the image's top-left corner should be remapped in the target coordinate...
float getOpacity() const noexcept
Returns the image's opacity.
const Image & getImage() const noexcept
Returns the current image.
The base class for objects which can draw themselves, e.g.
A graphics context, used for drawing a component or image.
Holds a fixed-size bitmap.
Represents a parallelogram that is defined by 3 points.
A path is a sequence of lines and curves that may either form a closed shape or be open-ended.
Manages a rectangle and allows geometric operations to be performed on it.
#define JUCE_LEAK_DETECTOR(OwnerClass)
This macro lets you embed a leak-detecting object inside a class.