| M E M _ R E M A P B I T M A P 2 ( )
| | | | | SOURCE: qdev_autodocs.txt 1.163 (12/09/2014) English AMIGA - MEM_#?
----------------------------------------------------------------------------
NAME
mem_remapbitmap2() - Remaps the BitMap to fit new
ColorMap (low mem. version).
SYNOPSIS
newbm = mem_remapbitmap2(bm, rgb32, cm, tab, type);
struct BitMap *mem_remapbitmap2(struct BitMap *,
ULONG *, struct ColorMap *, WORD *, ULONG);
FUNCTION
This function allows to remap the bitmap, so it can
be displayed using 'cm'.
INPUTS
bm - BitMap to be remapped.
rgb32 - Palette of that BitMap. An array where the
very first entry is record header of ULONG
and each component(R, G, B) is ULONG wide.
cm - ColorMap pointer.
tab - Pen table, the cache.
type - Type of memory(standard 'AllocMem()' flags)
with one small exception. Passing MEMF_CHIP
means use 'AllocBitMap()'!
RETURNS
Ret. ptr to new bitmap or NULL if there were probs.
BASES
SysBase, GfxBase
NOTES
This function does exactly what 'mem_remapbitmap()'
does, except that it does not need to allocate the
chunky buffer. Main gains are: low memory setup or
fragmented memory are not a problem when working on
huge bitmaps. But this routine is slightly slower.
See NOTES of 'mem_remapbitmap()' for more details.
SEE ALSO
mem_freepentab(), mem_loadpicture(),
mem_freepicture()
EXAMPLE
See 'a-mem_xxxpicture()' for more details.
BUGS
None known.
----------------------------------------------------------------------------
| |
| |