Blender  V2.59
Public Types | Public Member Functions | Public Attributes
Image Struct Reference

32 bit RGBA image. More...

#include <Image.h>

List of all members.

Public Types

enum  Format { Format_RGB, Format_ARGB }

Public Member Functions

 Image ()
 ~Image ()
void allocate (uint w, uint h)
uint width () const
uint height () const
const Color32scanline (uint h) const
Color32scanline (uint h)
const Color32pixels () const
Color32pixels ()
const Color32pixel (uint idx) const
Color32pixel (uint idx)
const Color32pixel (uint x, uint y) const
Color32pixel (uint x, uint y)
Format format () const
void setFormat (Format f)

Public Attributes

ID id
char name [240]
ListBase ibufs
struct GPUTexturegputexture
struct animanim
struct RenderResultrr
struct RenderResultrenders [8]
short render_slot
short last_render_slot
short ok
short flag
short source
short type
int lastframe
short tpageflag
short totbind
short xrep
short yrep
short twsta
short twend
unsigned int bindcode
unsigned int * repbind
struct PackedFilepackedfile
struct PreviewImagepreview
float lastupdate
int lastused
short animspeed
short gen_x
short gen_y
char gen_type
char gen_flag
float aspx
float aspy

Detailed Description

32 bit RGBA image.

Definition at line 46 of file Image.h.


Member Enumeration Documentation

Enumerator:
Format_RGB 
Format_ARGB 

Definition at line 50 of file Image.h.


Constructor & Destructor Documentation

Image::Image ( )

Definition at line 44 of file Image.cpp.

Image::~Image ( )

Definition at line 48 of file Image.cpp.


Member Function Documentation

void Image::allocate ( uint  w,
uint  h 
)

Definition at line 53 of file Image.cpp.

References simple_enum_gen::w.

Referenced by DirectDrawSurface::mipmap().

Image::Format Image::format ( ) const

Definition at line 125 of file Image.cpp.

Referenced by imb_load_dds().

uint Image::height ( ) const

Definition at line 73 of file Image.cpp.

Referenced by ColorBlock::init().

const Color32 & Image::pixel ( uint  idx) const

Definition at line 106 of file Image.cpp.

Referenced by pixel().

Color32 & Image::pixel ( uint  idx)

Definition at line 115 of file Image.cpp.

const Color32 & Image::pixel ( uint  x,
uint  y 
) const [inline]

Definition at line 96 of file Image.h.

References pixel(), and width().

Color32 & Image::pixel ( uint  x,
uint  y 
) [inline]

Definition at line 101 of file Image.h.

References pixel(), and width().

const Color32 * Image::pixels ( ) const

Definition at line 96 of file Image.cpp.

Referenced by imb_load_dds(), and ColorBlock::init().

Color32 * Image::pixels ( )

Definition at line 101 of file Image.cpp.

const Color32 * Image::scanline ( uint  h) const

Definition at line 78 of file Image.cpp.

Color32 * Image::scanline ( uint  h)

Definition at line 87 of file Image.cpp.

void Image::setFormat ( Image::Format  f)

Definition at line 130 of file Image.cpp.

Referenced by DirectDrawSurface::mipmap().

uint Image::width ( ) const

Definition at line 68 of file Image.cpp.

Referenced by ColorBlock::init(), and pixel().


Member Data Documentation

struct anim* Image::anim

Definition at line 102 of file DNA_image_types.h.

Referenced by copy_image(), do_versions(), and GPU_update_image_time().

float Image::aspx
float Image::aspy
unsigned int Image::bindcode
short Image::flag

Definition at line 106 of file DNA_image_types.h.

Referenced by BKE_add_image_size(), and BKE_image_acquire_ibuf().

short Image::gen_x
short Image::gen_y

Definition at line 71 of file DNA_image_types.h.

Referenced by background_image_add_invoke(), background_image_remove_exec(), bake_images(), BKE_add_image_file(), BKE_image_all_free_anim_ibufs(), BKE_image_free_all_textures(), BKE_image_print_memlist(), BKE_image_signal(), BKE_image_verify_viewer(), BL_ConvertMesh(), BLI_bpathIterator_step(), blo_end_image_pointer_map(), blo_make_image_pointer_map(), brush_clone_image_delete(), brush_clone_image_set_nr(), clear_images(), ConvertMaterial(), copy_image(), count_images(), countPackedFiles(), do_versions(), ED_space_image_set(), ED_uvedit_assign_image(), finish_bake_internal(), free_image(), free_old_images(), get_next_bake_face(), GPU_free_images(), GPU_free_images_anim(), GPU_free_unused_buffers(), GPU_paint_set_mipmap(), GPU_update_images_framechange(), ima_stepdata__internal(), image_changed(), image_fix_relative_path(), image_initialize_after_load(), image_load_image_file(), image_load_movie_file(), image_load_sequence_file(), image_new_exec(), image_undo_push_tile(), image_undo_restore(), image_unpack_invoke(), imapaint_canvas_set(), BL_Texture::InitCubeMap(), BL_Texture::InitFromImage(), lib_link_image(), lib_link_mtface(), localize_texture(), make_local_brush(), make_local_texture(), make_local_tface(), open_exec(), pack_all_invoke(), packAll(), project_paint_begin(), RE_bake_shade_all_selected(), texture_paint_camera_project_exec(), texture_paint_image_from_view_exec(), uiTemplateImage(), unpackAll(), view3d_duplicate(), view3d_free(), and write_images().

Definition at line 100 of file DNA_image_types.h.

Referenced by GPU_update_image_time().

Definition at line 101 of file DNA_image_types.h.

Referenced by free_old_images(), image_initialize_after_load(), and tag_image_time().

char Image::name[240]
short Image::ok
unsigned int* Image::repbind

Definition at line 90 of file DNA_image_types.h.

Referenced by GPU_free_image(), gpu_make_repbind(), and GPU_verify_image().

short Image::twend

Definition at line 92 of file DNA_image_types.h.

Referenced by GPU_update_image_time(), and GPU_update_images_framechange().

short Image::twsta

Definition at line 92 of file DNA_image_types.h.

Referenced by GPU_update_image_time(), and GPU_update_images_framechange().

short Image::type
short Image::xrep
short Image::yrep

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