JUCE  v5.4.1-191-g0ab5e696f
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::NativeImageType Class Reference

An image storage type which holds the pixels using whatever is the default storage format on the current platform. More...

#include <juce_Image.h>

Inheritance diagram for juce::NativeImageType:
Collaboration diagram for juce::NativeImageType:

Public Member Functions

 NativeImageType ()
 
 ~NativeImageType () override
 
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 using whatever is the default storage format on the current platform.

See also
ImageType, SoftwareImageType

{Graphics}

Constructor & Destructor Documentation

◆ NativeImageType()

juce::NativeImageType::NativeImageType ( )

◆ ~NativeImageType()

juce::NativeImageType::~NativeImageType ( )
override

Member Function Documentation

◆ convert()

virtual Image juce::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 juce::NativeImageType::create ( Image::PixelFormat  ,
int  width,
int  height,
bool  shouldClearImage 
) const
overridevirtual

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

Implements juce::ImageType.

◆ getTypeID()

int juce::NativeImageType::getTypeID ( ) const
overridevirtual

Must return a unique number to identify this type.

Implements juce::ImageType.


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