INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES

indexing

title: "Defines the dimensions and color information for a ", "Windows device-independent bitmap (DIB). ", "WEL: library of reusable components for Eiffel. ", "Based on WEL library for ISE Eiffel, used with permission. "
project: "Windows Eiffel Library"
copyright: "(c) 1986-1997 Interactive Software Engineering Inc. ", "Modifications and extensions: ", "(c) 1997 Object Tools ", "All rights reserved. Duplication and distribution prohibited", "May be used only with Visual Eiffel under terms of user ", "license "
cluster: wel
class WEL_BITMAP_INFO
inherit

WEL_STRUCTURE
rename
make as structure_make
end

WEL_DIB_COLORS_CONSTANTS
export
{NONE}
all
{ANY}
valid_dib_colors_constant
end
creation

make,
make_by_dc,
make_by_pointer
feature {NONE}-- Initialization

make (a_bitmap_info_header: WEL_BITMAP_INFO_HEADER; a_rgb_quad_count: INTEGER)
-- Make a BITMAPINFO structure
-- with `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)
-- Make a bitmap info structure using `dc' and
-- `bitmap'.
-- See class WEL_DIB_COLORS_CONSTANTS for `usage'
-- values.
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)
feature -- Access

header: WEL_BITMAP_INFO_HEADER
-- Information about the dimensions and color
-- format of a DIB
ensure
result_not_void: Result /= void

rgb_quad_count: INTEGER

rgb_quad (index: INTEGER): WEL_RGB_QUAD
-- Bitmap color at zero-based `index'
require
index_small_enough: index < rgb_quad_count
index_large_enough: index >= 0
ensure
result_not_void: Result /= void
feature -- Element change

set_bitmap_info_header (a_header: WEL_BITMAP_INFO_HEADER)
-- Set `header' with `a_header'.
require
a_header_not_void: a_header /= void

set_rgb_quad (index: INTEGER; a_rgb_quad: WEL_RGB_QUAD)
-- Set `rgb_quad' with `a_rgb_quad' at
-- zero-based `index'.
require
index_small_enough: index < rgb_quad_count
index_large_enough: index >= 0
a_rgb_quad_not_void: a_rgb_quad /= void
feature -- Measurement

structure_size: INTEGER
-- Size to allocate (in bytes)
feature -- Obsolete

bitmap_info_header: WEL_BITMAP_INFO_HEADER
obsolete "Use ``header''"
end -- class WEL_BITMAP_INFO

INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES