JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Member Functions | List of all members
juce::ImageType Class Referenceabstract

This base class is for handlers that control a type of image manipulation format, e.g. More...

#include "juce_Image.h"

Inheritance diagram for juce::ImageType:
juce::NativeImageType juce::SoftwareImageType

Public Member Functions

virtual ImagePixelData::Ptr create (Image::PixelFormat, int width, int height, bool shouldClearImage) const =0
 Creates a new image of this type, and the specified parameters.
 
virtual int getTypeID () const =0
 Must return a unique number to identify this type.
 
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.
 

Detailed Description

This base class is for handlers that control a type of image manipulation format, e.g.

an in-memory bitmap, an OpenGL image, CoreGraphics image, etc.

See also
SoftwareImageType, NativeImageType, OpenGLImageType

@tags{Graphics}

Definition at line 503 of file juce_Image.h.

Constructor & Destructor Documentation

◆ ImageType()

juce::ImageType::ImageType ( )

Definition at line 52 of file juce_Image.cpp.

◆ ~ImageType()

juce::ImageType::~ImageType ( )
virtual

Definition at line 53 of file juce_Image.cpp.

Member Function Documentation

◆ convert()

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

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:

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.
An image storage type which holds the pixels in-memory as a simple block of values.
Definition juce_Image.h:530
Type unalignedPointerCast(void *ptr) noexcept
Casts a pointer to another type via void*, which suppresses the cast-align warning which sometimes ar...
Definition juce_Memory.h:88

Definition at line 55 of file juce_Image.cpp.

◆ create()

virtual ImagePixelData::Ptr juce::ImageType::create ( Image::PixelFormat  ,
int  width,
int  height,
bool  shouldClearImage 
) const
pure virtual

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

Implemented in juce::SoftwareImageType, and juce::NativeImageType.

◆ getTypeID()

virtual int juce::ImageType::getTypeID ( ) const
pure virtual

Must return a unique number to identify this type.

Implemented in juce::SoftwareImageType, and juce::NativeImageType.


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