INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES

indexing

title: "Windows Bitmap, which can be loaded from a resource ", "or created from an existing 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
inherit

WEL_GDI_ANY
end

WEL_RESOURCE
end

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

make_by_dib,
make_by_id,
make_by_name,
make_compatible,
make_indirect
feature {NONE}-- Initialization

make_compatible (a_dc: WEL_DC; a_width, a_height: INTEGER)
-- Initialize current bitmap to be compatible
-- with `a_dc' and with `a_width' as `width',
-- `a_height' as `height'.
require
a_dc_not_void: a_dc /= void
a_dc_exists: a_dc.exists
positive_width: a_width >= 0
positive_height: a_height >= 0

make_by_dib (a_dc: WEL_DC; dib: WEL_DIB; mode: INTEGER)
-- Create a WEL_BITMAP from a `dib' in the `a_dc'
-- using `mode'. See class `WEL_DIB_COLORS_CONSTANTS'
-- for `mode' values.
require
a_dc_not_void: a_dc /= void
a_dc_exists: a_dc.exists
dib_not_void: dib /= void
valid_mode: valid_dib_colors_constant (mode)

make_indirect (a_log_bitmap: WEL_LOG_BITMAP)
-- Make a bitmap using `a_log_bitmap'.
require
a_log_bitmap_not_void: a_log_bitmap /= void
feature -- Access

width: INTEGER
-- Bitmap width
require
exists: exists
ensure
positive_result: Result >= 0

height: INTEGER
-- Bitmap height
require
exists: exists
ensure
positive_result: Result >= 0

log_bitmap: WEL_LOG_BITMAP
-- Log bitmap structure associated to `Current'
require
exists: exists
ensure
result_not_void: Result /= void
feature -- Basic operations

set_di_bits (a_dc: WEL_DC; start_line, length: INTEGER; dib: WEL_DIB; mode: INTEGER)
-- Set the bits of the current bitmap to the values
-- given in `dib', starting at line `start_line'
-- during `length' lines, using `mode'.
-- See class WEL_DIB_COLORS_CONSTANTS for `mode' values.
require
exists: exists
a_dc_not_void: a_dc /= void
a_dc_exists: a_dc.exists
dib_not_void: dib /= void
valid_mode: valid_dib_colors_constant (mode)
end -- class WEL_BITMAP

INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES