101 return this->sima->
zoom;
108 return aspect_ratio.y;
115 return -
float2(sima->xof, sima->yof) * sima->zoom;
ImageUser * get_image_user() override
float get_aspect_ratio() const override
Gets the aspect ratio of the image. The ratio is for the vertical axis.
void get_shader_parameters(ShaderParameters &r_shader_parameters, ImBuf *image_buffer) override
bool use_display_window() const override
Draw image with display window offsets.
void release_buffer(blender::Image *, ImBuf *image_buffer, void *lock) override
blender::Image * get_image(Main *) override
float get_zoom() const override
Gets the zoom factor of the space. A factor of 2 is a zoom-in by two times.
SpaceImageAccessor(SpaceImage *sima)
ImBuf * acquire_image_buffer(blender::Image *, void **lock) override
float2 get_pan_offset() const override
Gets the pan offset of the space in image pixel space.
bool use_tile_drawing() const override
Is (wrap) repeat option enabled in the space.
@ IMAGE_DRAW_FLAG_SHOW_ALPHA
@ IMAGE_DRAW_FLAG_SHUFFLING
@ IMAGE_DRAW_FLAG_APPLY_ALPHA
void ED_space_image_get_aspect(SpaceImage *sima, float *r_aspx, float *r_aspy)
ImBuf * ED_space_image_acquire_buffer(SpaceImage *sima, void **r_lock, int tile, const bool ensure_host_buffer)
void ED_space_image_release_buffer(SpaceImage *sima, ImBuf *ibuf, void *lock)
VecBase< float, 4 > float4
VecBase< float, 2 > float2
int ED_space_image_get_display_channel_mask(ImBuf *ibuf)
bool IMB_alpha_affects_rgb(const ImBuf *ibuf)
Image * ED_space_image(const SpaceImage *sima)