JUCE  v5.1.1-3-g1a0b28c73
JUCE API
SoftwareImageType Class Reference

An image storage type which holds the pixels in-memory as a simple block of values. More...

#include <juce_Image.h>

Inheritance diagram for SoftwareImageType:
Collaboration diagram for SoftwareImageType:

Public Member Functions

 SoftwareImageType ()
 
 ~SoftwareImageType ()
 
virtual Image convert (const Image &source) const
 Returns an image which is a copy of the source image, but using this type of storage mechanism. More...
 
ImagePixelData::Ptr create (Image::PixelFormat, int width, int height, bool clearImage) const override
 Creates a new image of this type, and the specified parameters. More...
 
int getTypeID () const override
 Must return a unique number to identify this type. More...
 

Detailed Description

An image storage type which holds the pixels in-memory as a simple block of values.

See also
ImageType, NativeImageType

Constructor & Destructor Documentation

◆ SoftwareImageType()

SoftwareImageType::SoftwareImageType ( )

◆ ~SoftwareImageType()

SoftwareImageType::~SoftwareImageType ( )

Member Function Documentation

◆ convert()

virtual Image ImageType::convert ( const Image source) const
virtualinherited

Returns an image which is a copy of the source image, but using this type of storage mechanism.

For example, to make sure that an image is stored in-memory, you could use:

myImage = SoftwareImageType().convert (myImage);

◆ create()

ImagePixelData::Ptr SoftwareImageType::create ( Image::PixelFormat  ,
int  width,
int  height,
bool  shouldClearImage 
) const
overridevirtual

Creates a new image of this type, and the specified parameters.

Implements ImageType.

◆ getTypeID()

int SoftwareImageType::getTypeID ( ) const
overridevirtual

Must return a unique number to identify this type.

Implements ImageType.


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