const maxon::ImageRef image = maxon::ImageClasses::IMAGE().Create()
iferr_return;
const maxon::PixelFormat rgbFormat = maxon::PixelFormats::RGB::U8();
const auto storageType = maxon::ImagePixelStorageClasses::Normal();
const maxon::BITS bitsPerPixel = rgbFormat.GetBitsPerPixel();
{
{
{
return maxon::SafeConvert<maxon::UChar>(randomValue);
};
pixelArray[0] = GetRandomValue();
pixelArray[1] = GetRandomValue();
pixelArray[2] = GetRandomValue();
}
}
const maxon::MediaOutputUrlRef png = maxon::ImageSaverClasses::Png().Create()
iferr_return;
maxon::MediaSessionRef session;
const maxon::ImageTextureRef textureRef = maxon::ImageTextureClasses::TEXTURE().Create()
iferr_return;
const char ** buffer
Definition: abstract.h:327
PyCompilerFlags * flags
Definition: ast.h:14
This class represents the number of bits in a pixel format.
Definition: gfx_image_bits.h:15
Definition: basearray.h:415
MAXON_ATTRIBUTE_FORCE_INLINE const T * GetFirst() const
Definition: basearray.h:1175
ResultMem Resize(Int newCnt, COLLECTION_RESIZE_FLAGS resizeFlags=COLLECTION_RESIZE_FLAGS::DEFAULT)
Definition: basearray.h:1218
Definition: lib_math.h:19
FLOAT Get01()
Returns the next random value in the range of [0..1].
The TimeValue class encapsulates a timer value.
Definition: timevalue.h:33
PyObject * x
Definition: bytesobject.h:38
void Py_ssize_t * pos
Definition: dictobject.h:50
Int64 Int
signed 32/64 bit int, size depends on the platform
Definition: apibase.h:202
Float64 Float
Definition: apibase.h:211
unsigned char UChar
unsigned 8 bit character
Definition: apibase.h:199
SETPIXELHANDLERFLAGS
Flags to control the SetPixelHandler functions.
Definition: gfx_image_pixelformat.h:67
@ IMAGE
Adds a subImage to a texture. Images are only allowed under Textures.
unsigned long Py_ssize_t width
Definition: pycore_traceback.h:88
#define iferr_return
Definition: resultbase.h:1524
Several functions use this helper structure to pass the position within an image and number of pixels...
Definition: gfx_image_pixelhandler.h:18
Several functions use this helper structure to pass the image data to functions.
Definition: gfx_image_pixelformat.h:137
Definition: gfx_image_pixelhandler.h:134
MAXON_ATTRIBUTE_FORCE_INLINE Result< void > SetPixel(const ImagePos &pos, const PixelConstBuffer &buffer, SETPIXELFLAGS flags) const
Definition: gfx_image_pixelhandler.h:191
An image typically stores bitmap data. This data is accessed with:
const maxon::ImageTextureRef sourceImage = maxon::ImageTextureClasses::TEXTURE().Create()
iferr_return;
const maxon::PixelFormat
format = maxon::PixelFormats::RGB::U8();
const auto offset =
format.GetChannelOffsets();
const maxon::Int height = sourceImage.GetHeight();
const maxon::ImageRef invertedImage = maxon::ImageClasses::IMAGE().Create()
iferr_return;
const auto storageType = maxon::ImagePixelStorageClasses::Normal();
const maxon::ColorProfile colorProfile { };
{
{
});
}
const maxon::ImageTextureRef targetImage = maxon::ImageTextureClasses::TEXTURE().Create()
iferr_return;
const maxon::MediaOutputUrlRef png = maxon::ImageSaverClasses::Png().Create()
iferr_return;
Py_ssize_t i
Definition: abstract.h:645
const char * format
Definition: abstract.h:183
static auto Dynamic(FROMTYPE from, INDEXTYPE to, const LOOP &obj, const Granularity &granularity=Granularity(), JobQueueInterface *queue=JOBQUEUE_CURRENT, Int deprecatedThrCnt=0) -> decltype(obj(to))
Definition: parallelfor.h:265
Py_ssize_t size
Definition: bytesobject.h:86
Definition: gfx_image_pixelhandler.h:32
MAXON_ATTRIBUTE_FORCE_INLINE Result< void > GetPixel(const ImagePos &pos, const PixelMutableBuffer &buffer, GETPIXELFLAGS flags) const
Definition: gfx_image_pixelhandler.h:96