touchgfx::ScalableImage class
@class ScalableImage ScalableImage.hpp touchgfx/widgets/ScalableImage.hpp Widget for representing a scaled version of a bitmap. Widget for representing a scaled version of a bitmap. Simply change the width/height of the widget to resize the image. The quality of the scaled image depends of the rendering algorithm used. The rendering algorithm can be changed dynamically. Please note that scaling images is done at runtime and requires a lot of calculations. Therefore use it with some care. Note that this widget does not support 1 bit per pixel color depth. @see Widget
currentScalingAlgorithm
bitmap
alpha
Methods
setBitmap()
@fn virtual void ScalableImage::setBitmap(const Bitmap& bmp); Sets the bitmap for the image. Sets the bitmap for the image.
Read more...
getBitmap() const
@fn Bitmap ScalableImage::getBitmap() const Gets the bitmap for the image. Gets the bitmap for the image.
Read more...
setAlpha()
@fn virtual void ScalableImage::setAlpha(uint8_t alpha) Sets the alpha channel for the image. Sets the alpha channel for the image.
Read more...
getAlpha() const
@fn virtual uint8_t ScalableImage::getAlpha() const Gets the current alpha value. Gets the current alpha value.
Read more...
setScalingAlgorithm()
@fn virtual void ScalableImage::setScalingAlgorithm(ScalingAlgorithm algorithm); Sets the algorithm to be used. Sets the algorithm to be used.
Read more...
getScalingAlgorithm()
@fn virtual ScalingAlgorithm ScalableImage::getScalingAlgorithm(); Gets the algorithm used when rendering. Gets the algorithm used when rendering.
Read more...
draw() const
@fn virtual void ScalableImage::draw(const Rect& invalidatedArea) const; Draws the given invalidated area. Draws the given invalidated area. @see Drawable::draw().
Read more...
getSolidRect() const
@fn virtual Rect ScalableImage::getSolidRect() const; Gets solid rectangle. Gets solid rectangle. @see Drawable::getSolidRect().
Read more...
getType() const
@fn virtual uint16_t ScalableImage::getType() const For GUI testing only. For GUI testing only. Returns type of this drawable.
Read more...
drawTriangle() const
@fn void ScalableImage::drawTriangle(const Rect& invalidatedArea, uint16_t* fb, const float* triangleXs, const float* triangleYs, const float* triangleZs, const float* triangleUs, const float* triangleVs) const; Draw a triangle part of the bitmap. Draw a triangle part of the bitmap.
Read more...
lookupRenderVariant() const
@fn RenderingVariant ScalableImage::lookupRenderVariant() const; Looks up the appropriate render variant based on the bitmap format and scaling algorithm. Looks up the appropriate render variant based on the bitmap format and scaling algorithm.
Read more...
Child classes
touchgfx::ScalableImage
Variables of touchgfx::ScalableImage type
touchgfx::ScalableImage