indexing
description: "Defines the dimensions and color information for a Windows device-independent bitmap (DIB)."
status: "See notice at end of class."
date: "$Date$"
revision: "$Revision$"
class interface
WEL_BITMAP_INFO
create
make (a_bitmap_info_header: WEL_BITMAP_INFO_HEADER; a_rgb_quad_count: INTEGER)
a_bitmap_info_header
require
a_bitmap_info_header_not_void: a_bitmap_info_header /= void
positive_rgb_quad_count: a_rgb_quad_count >= 0
make_by_dc (dc: WEL_DC; bitmap: WEL_BITMAP; usage: INTEGER)
dc
bitmap
WEL_DIB_COLORS_CONSTANTSusage
require
dc_not_void: dc /= void
dc_exists: dc.exists
bitmap_not_void: bitmap /= void
bitmap_exists: bitmap.exists
valid_usage: valid_dib_colors_constant (usage)
make_by_pointer (a_pointer: POINTER)
itema_pointer
item
a_pointer
WEL_ANY
ensure WEL_ANY
item_set: item = a_pointer
shared: shared
feature
header: WEL_BITMAP_INFO_HEADER
ensure
result_not_void: Result /= void
item: POINTER
WEL_ANY
rgb_quad (index: INTEGER): WEL_RGB_QUAD
index
require
index_small_enough: index < rgb_quad_count
index_large_enough: index >= 0
ensure
result_not_void: Result /= void
rgb_quad_count: INTEGER
feature
structure_size: INTEGER
ensure WEL_STRUCTURE
positive_result: Result > 0
feature
exists: BOOLEAN
item
WEL_ANY
ensure WEL_ANY
Result = (item /= default_pointer)
shared: BOOLEAN
item
item
destroy_item
item
WEL_ANY
feature
valid_dib_colors_constant (c: INTEGER): BOOLEAN
c
WEL_DIB_COLORS_CONSTANTS
feature
set_shared
shared
WEL_ANY
ensure WEL_ANY
shared: shared
set_unshared
shared
WEL_ANY
ensure WEL_ANY
unshared: not shared
feature
set_bitmap_info_header (a_header: WEL_BITMAP_INFO_HEADER)
headera_header
require
a_header_not_void: a_header /= void
set_item (an_item: POINTER)
iteman_item
WEL_ANY
ensure WEL_ANY
item_set: item = an_item
set_rgb_quad (index: INTEGER; a_rgb_quad: WEL_RGB_QUAD)
rgb_quada_rgb_quad
index
require
index_small_enough: index < rgb_quad_count
index_large_enough: index >= 0
a_rgb_quad_not_void: a_rgb_quad /= void
feature
dispose
Current
Current
WEL_ANY
feature
to_integer: INTEGER
item
WEL_ANY
ensure WEL_ANY
Result = cwel_pointer_to_integer (item)
feature
initialize
WEL_STRUCTURE
require WEL_STRUCTURE
exists: exists
initialize_with_character (a_character: CHARACTER)
a_character
WEL_STRUCTURE
require WEL_STRUCTURE
exists: exists
memory_copy (source_pointer: POINTER; length: INTEGER)
lengthsource_pointeritem
WEL_STRUCTURE
require WEL_STRUCTURE
length_small_enough: length <= structure_size
length_large_enough: length > 0
exists: exists
invariant
ANY
reflexive_equality: standard_is_equal (Current)
reflexive_conformance: conforms_to (Current)
end -- WEL_BITMAP_INFO