Blender V2.61 - r43446
Functions

ED_image.h File Reference

Go to the source code of this file.

Functions

struct ImageED_space_image (struct SpaceImage *sima)
void ED_space_image_set (struct SpaceImage *sima, struct Scene *scene, struct Object *obedit, struct Image *ima)
struct ImBufED_space_image_acquire_buffer (struct SpaceImage *sima, void **lock_r)
void ED_space_image_release_buffer (struct SpaceImage *sima, void *lock)
int ED_space_image_has_buffer (struct SpaceImage *sima)
void ED_space_image_size (struct SpaceImage *sima, int *width, int *height)
void ED_space_image_aspect (struct SpaceImage *sima, float *aspx, float *aspy)
void ED_space_image_zoom (struct SpaceImage *sima, struct ARegion *ar, float *zoomx, float *zoomy)
void ED_space_image_uv_aspect (struct SpaceImage *sima, float *aspx, float *aspy)
void ED_space_image_paint_update (struct wmWindowManager *wm, struct ToolSettings *settings)
void ED_image_size (struct Image *ima, int *width, int *height)
void ED_image_aspect (struct Image *ima, float *aspx, float *aspy)
void ED_image_uv_aspect (struct Image *ima, float *aspx, float *aspy)
int ED_space_image_show_render (struct SpaceImage *sima)
int ED_space_image_show_paint (struct SpaceImage *sima)
int ED_space_image_show_uvedit (struct SpaceImage *sima, struct Object *obedit)
int ED_space_image_show_uvshadow (struct SpaceImage *sima, struct Object *obedit)
void ED_image_update_frame (const struct Main *mainp, int cfra)
void ED_image_draw_info (struct ARegion *ar, int color_manage, int channels, int x, int y, const char cp[4], const float fp[4], int *zp, float *zpf)

Detailed Description

Definition in file ED_image.h.


Function Documentation

void ED_image_aspect ( struct Image ima,
float *  aspx,
float *  aspy 
)
void ED_image_draw_info ( struct ARegion ar,
int  color_manage,
int  channels,
int  x,
int  y,
const char  cp[4],
const float  fp[4],
int *  zp,
float *  zpf 
)
void ED_image_size ( struct Image ima,
int *  width,
int *  height 
)

Definition at line 147 of file space_image.c.

References BKE_image_acquire_ibuf(), BKE_image_release_ibuf(), NULL, ImBuf::x, and ImBuf::y.

Referenced by ED_image_uv_aspect().

void ED_image_update_frame ( const struct Main mainp,
int  cfra 
)
void ED_image_uv_aspect ( struct Image ima,
float *  aspx,
float *  aspy 
)

Definition at line 248 of file space_image.c.

References ED_image_aspect(), ED_image_size(), and simple_enum_gen::w.

Referenced by construct_param_handle(), and correct_uv_aspect().

struct Image* ED_space_image ( struct SpaceImage sima) [read]
struct ImBuf* ED_space_image_acquire_buffer ( struct SpaceImage sima,
void **  lock_r 
) [read]
void ED_space_image_aspect ( struct SpaceImage sima,
float *  aspx,
float *  aspy 
)

Definition at line 213 of file space_image.c.

References ED_image_aspect(), and ED_space_image().

Referenced by ED_space_image_uv_aspect(), and image_view_all_exec().

int ED_space_image_has_buffer ( struct SpaceImage sima)
void ED_space_image_paint_update ( struct wmWindowManager wm,
struct ToolSettings settings 
)
void ED_space_image_release_buffer ( struct SpaceImage sima,
void *  lock 
)
void ED_space_image_set ( struct SpaceImage sima,
struct Scene scene,
struct Object obedit,
struct Image ima 
)
int ED_space_image_show_paint ( struct SpaceImage sima)
int ED_space_image_show_render ( struct SpaceImage sima)
int ED_space_image_show_uvedit ( struct SpaceImage sima,
struct Object obedit 
)
int ED_space_image_show_uvshadow ( struct SpaceImage sima,
struct Object obedit 
)
void ED_space_image_size ( struct SpaceImage sima,
int *  width,
int *  height 
)
void ED_space_image_uv_aspect ( struct SpaceImage sima,
float *  aspx,
float *  aspy 
)
void ED_space_image_zoom ( struct SpaceImage sima,
struct ARegion ar,
float *  zoomx,
float *  zoomy 
)