Blender V2.61 - r43446
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 Color32 * scanline (uint h) const
Color32 * scanline (uint h)
const Color32 * pixels () const
Color32 * pixels ()
const Color32 & pixel (uint idx) const
Color32 & pixel (uint idx)
const Color32 & pixel (uint x, uint y) const
Color32 & pixel (uint x, uint y)
Format format () const
void setFormat (Format f)

Public Attributes

ID id
char name [240]
ListBase ibufs
struct GPUTexture * gputexture
struct anim * anim
struct RenderResult * rr
struct RenderResult * renders [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 PackedFile * packedfile
struct PreviewImage * preview
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 44 of file source/blender/imbuf/intern/dds/Image.h.


Member Enumeration Documentation

Enumerator:
Format_RGB 
Format_ARGB 

Definition at line 48 of file source/blender/imbuf/intern/dds/Image.h.


Constructor & Destructor Documentation

Image::Image ( )

Definition at line 42 of file source/blender/imbuf/intern/dds/Image.cpp.

Image::~Image ( )

Definition at line 46 of file source/blender/imbuf/intern/dds/Image.cpp.

References addon::engine::free().


Member Function Documentation

void Image::allocate ( uint  w,
uint  h 
)
Image::Format Image::format ( ) const

Definition at line 123 of file source/blender/imbuf/intern/dds/Image.cpp.

Referenced by imb_load_dds().

uint Image::height ( ) const

Definition at line 71 of file source/blender/imbuf/intern/dds/Image.cpp.

Referenced by ColorBlock::init().

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

Definition at line 99 of file source/blender/imbuf/intern/dds/Image.h.

References pixel(), and width().

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

Definition at line 104 of file source/blender/imbuf/intern/dds/Image.cpp.

Referenced by pixel().

Color32 & Image::pixel ( uint  idx)

Definition at line 113 of file source/blender/imbuf/intern/dds/Image.cpp.

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

Definition at line 94 of file source/blender/imbuf/intern/dds/Image.h.

References pixel(), and width().

Color32 * Image::pixels ( )

Definition at line 99 of file source/blender/imbuf/intern/dds/Image.cpp.

const Color32 * Image::pixels ( ) const

Definition at line 94 of file source/blender/imbuf/intern/dds/Image.cpp.

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

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

Definition at line 76 of file source/blender/imbuf/intern/dds/Image.cpp.

Color32 * Image::scanline ( uint  h)

Definition at line 85 of file source/blender/imbuf/intern/dds/Image.cpp.

void Image::setFormat ( Image::Format  f)
uint Image::width ( ) const

Definition at line 66 of file source/blender/imbuf/intern/dds/Image.cpp.

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


Member Data Documentation

struct anim* Image::anim

Definition at line 101 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 105 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 70 of file DNA_image_types.h.

Referenced by background_image_add_invoke(), 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(), 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_object_assign_active_image(), ED_space_image_set(), ED_uvedit_assign_image(), ED_view3D_background_image_remove(), 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(), image_changed(), image_initialize_after_load(), image_load_image_file(), image_load_movie_file(), image_load_sequence_file(), image_new_exec(), image_open_exec(), image_pack_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_image(), pack_all_invoke(), packAll(), project_paint_begin(), RE_bake_shade_all_selected(), save_image_doit(), texture_paint_camera_project_exec(), texture_paint_image_from_view_exec(), uiTemplateImage(), unpackAll(), view3d_duplicate(), view3d_free(), and write_images().

Definition at line 99 of file DNA_image_types.h.

Referenced by GPU_update_image_time().

Definition at line 100 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 89 of file DNA_image_types.h.

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

short Image::twend

Definition at line 91 of file DNA_image_types.h.

Referenced by GPU_update_image_time(), and GPU_update_images_framechange().

short Image::twsta

Definition at line 91 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: