INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES

indexing

title: "Visual Eiffel Library.", "Win32 API: Bitmap Functions"
project: "Visual Eiffel Win32 Library"
revision: "$Revision: 1.1 $"
copyright: "Copyright (C) 1996-2005 Object Tools Group"
license: "http://visual-eiffel.com/license"
cluster: winlib
class WAPI_BITMAP_FUNCTIONS
inherit

WAPI_ERROR_SERVER
end
feature -- Access

BitBlt (hdcdest, nxdest, nydest, nwidth, nheight, hdcsrc, nxsrc, nysrc, dwrop: INTEGER)
-- The 'BitBlt' procedure performs a bit-block transfer of the color data
-- corresponding to a rectangle of pixels from the specified source device
-- context into a destination device context.
require
correct_hdcdest: hdcdest /= null_

CreateBitmap (nwidth, nheight, cplanes, cbitsperpel: INTEGER; lpvbits: POINTER): INTEGER

CreateCompatibleBitmap (hdc, w, h: INTEGER): INTEGER
-- The `CreateCompatibleBitmap' function creates a bitmap compatible
-- with the device that is associated with the specified device context.
require
correct_hdc: hdc /= null_

frozen GetPixel (hdc, xpos, nypos: INTEGER): INTEGER
-- The `GetPixel' function retrieves the red, green, blue (RGB) color value
-- of the pixel at the specified coordinates.

LoadBitmap (hinstance: INTEGER; lpbitmapname: POINTER): INTEGER
-- The `LoadBitmap' function loads the specified bitmap resource
-- from a module's executable file.
require
correct_lpbitmapname: lpbitmapname /= default_pointer

PatBlt (hdc, nxleft, nyleft, nwidth, nheight, dwrop: INTEGER)
-- The 'PatBlt' procedure paints the given rectangle using the brush
-- that is currently selected into the specified device context.
-- The brush color and the surface color(s) are combined by using
-- the given raster operation.
require
correct_hdc: hdc /= null_

SetPixel (hdc, x, y, crcolor: INTEGER)
-- The `SetPixel' function sets the pixel at the specified
-- coordinates to the specified color.
require
correct_hdc: hdc /= null_

StretchDIBits (hdc: INTEGER; xdest: INTEGER; ydest: INTEGER; ndestwidth: INTEGER; ndestheight: INTEGER; xsrc: INTEGER; ysrc: INTEGER; nsrcwidth: INTEGER; nsrcheight: INTEGER; lpbits: POINTER; lpbitsinfo: POINTER; iusage: INTEGER; dwrop: INTEGER): INTEGER
-- The 'StretchDIBits' function copies the color data for a rectangle
-- of pixels in a device-independent bitmap (DIB) to the specified
-- destination rectangle. If the destination rectangle is larger than
-- the source rectangle, this function stretches the rows and columns
-- of color data to fit the destination rectangle. If the destination
-- rectangle is smaller than the source rectangle, this function
-- compresses the rows and columns by using the specified raster
-- operation.
feature -- Implementation

GetDIBits (hdc, hbmp, ustartscan, cscanlines: INTEGER; lpvbits, lpbi: POINTER; uusage: INTEGER): INTEGER

SetDIBits (hdc, hbmp, ustartscan, cscanlines: INTEGER; lpvbits, lpbmi: POINTER; fucoloruse: INTEGER): INTEGER

frozen wBitBlt (hdcdest, nxdest, nydest, nwidth, nheight, hdcsrc, nxsrc, nysrc, dwrop: INTEGER): INTEGER

frozen wPatBlt (hdc, nxleft, nyleft, nwidth, nheight, dwrop: INTEGER): INTEGER

frozen wSetPixel (hdc, x, y, crcolor: INTEGER): INTEGER

frozen wCreateCompatibleBitmap (hdc, w, h: INTEGER): INTEGER

frozen wLoadBitmap (hinstance: INTEGER; lpbitmapname: POINTER): INTEGER
end -- class WAPI_BITMAP_FUNCTIONS

INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES