| M E M _ C O N V I M G T O B M A P ( )
| | | | | SOURCE: qdev_autodocs.txt 1.163 (12/09/2014) English AMIGA - MEM_#?
----------------------------------------------------------------------------
NAME
mem_convimgtobmap() - Converts Intuition Image to BitMap.
SYNOPSIS
mem_convimgtobmap(bm, image, vuq, hasher);
void mem_convimgtobmap(struct BitMap *, struct Image *,
VUQUAD *, ULONG (*)(VUQUAD *, void *, LONG));
FUNCTION
This function allows to convert standard Intuition Image
to Graphics BitMap structure without the need to allocate
memory for it.
INPUTS
bm - BitMap container(as created on stack for ex.).
image - Standard Image structure.
vuq - Pointer to real or virtual UQUAD. Can be NULL
if data hashing is not needed.
hasher - Hashing routine. Pass NULL if data hashing is
not required. Hashing function template looks
like 'mem_pjw64hash()'.
RETURNS
No output.
BASES
(GfxBase)
NOTES
Important! Dont free the image data at the time of using
this BitMap!!!
BitMap can be 1 to 8 bit only!
BitMap created by this function is in standard Amiga fmt.
If you need to hash all the planes, then always remeber
to zero the 'vuq' before function call.
SEE ALSO
mem_initemptybmap()
EXAMPLE
None.
BUGS
None known.
----------------------------------------------------------------------------
| |
| |