Blender  V3.3
Public Member Functions | List of all members
blender::ed::sculpt_paint::paint::image::ImageBufferByte4 Class Reference

Public Member Functions

void set_image_position (ImBuf *image_buffer, ushort2 image_pixel_position)
 
void next_pixel ()
 
float4 read_pixel (ImBuf *image_buffer) const
 
void write_pixel (ImBuf *image_buffer, const float4 pixel_data) const
 
const char * get_colorspace_name (ImBuf *image_buffer)
 

Detailed Description

Reading and writing to image buffer with 4 byte channels.

Definition at line 92 of file sculpt_paint_image.cc.

Member Function Documentation

◆ get_colorspace_name()

const char* blender::ed::sculpt_paint::paint::image::ImageBufferByte4::get_colorspace_name ( ImBuf image_buffer)
inline

Definition at line 122 of file sculpt_paint_image.cc.

References IMB_colormanagement_get_rect_colorspace().

◆ next_pixel()

void blender::ed::sculpt_paint::paint::image::ImageBufferByte4::next_pixel ( )
inline

Definition at line 102 of file sculpt_paint_image.cc.

◆ read_pixel()

float4 blender::ed::sculpt_paint::paint::image::ImageBufferByte4::read_pixel ( ImBuf image_buffer) const
inline

Definition at line 107 of file sculpt_paint_image.cc.

References ImBuf::rect, result, and rgba_uchar_to_float().

◆ set_image_position()

void blender::ed::sculpt_paint::paint::image::ImageBufferByte4::set_image_position ( ImBuf image_buffer,
ushort2  image_pixel_position 
)
inline

Definition at line 97 of file sculpt_paint_image.cc.

References ImBuf::x.

◆ write_pixel()

void blender::ed::sculpt_paint::paint::image::ImageBufferByte4::write_pixel ( ImBuf image_buffer,
const float4  pixel_data 
) const
inline

Definition at line 116 of file sculpt_paint_image.cc.

References ImBuf::rect, and rgba_float_to_uchar().


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