68 : image (imageIn), scaleFactor (scaleIn) {}
74 double getScale()
const {
return scaleFactor; }
81 double scaleFactor = 1.0;
Holds a fixed-size bitmap.
Manages a rectangle and allows geometric operations to be performed on it.
An image that will be resampled before it is drawn.
double getScale() const
Returns the image's scale.
Image getImage() const
Returns the image at its original dimensions.
ScaledImage(const Image &imageIn, double scaleIn)
Creates a ScaledImage from an Image, using a custom scale factor.
ScaledImage()=default
Creates a ScaledImage with an invalid image and unity scale.
Rectangle< double > getScaledBounds() const
Returns the bounds of this image expressed in points.
ScaledImage(const Image &imageIn)
Creates a ScaledImage from an Image, where the dimensions of the image in pixels are exactly equal to...