Name
GetBitMapAttr -- query software bitmap attribute (V6.0, optional)
Synopsis
int val = GetBitMapAttr(APTR handle, int attr, struct hwTagList *tags);
Function
This function must return the requested information about the specified bitmap. The attr parameter will tell you which information you have to return. The following attributes are currently recognized:

HWBMATTR_WIDTH:
Return the bitmap's width in pixels.

HWBMATTR_HEIGHT:
Return the bitmap's height in pixels.

HWBMATTR_BYTESPERROW:
Return the bitmap's bytes per row.

GetBitMapAttr() is an optional API and must only be implemented if HWSDAFLAGS_BITMAPADAPTER has been passed to hw_SetDisplayAdapter(). See hw_SetDisplayAdapter for details.

Inputs
handle
bitmap handle allocated by AllocBitMap()
attr
which information should be queried
tags
reserved for future use (currently NULL)
Results
val
value of the requested attribute

Show TOC