Well, this isn't working because the BitmapType an aggregated raw of data that
has the picture, see BmpGetBits. The size of this pointer is based on height x
width x density, you need copy that to. And see the version of bitmap struct,
thats is important to because the size of structure is different. And then to
allocated more that 32k yout need this:
#if defined (__palmosarm__)
#include <palmOneARM.h>
#include <MemoryMgr.h>
#else
#include <PalmOS.h>
SysAppInfoPtr SysGetAppInfo(SysAppInfoPtr *uiAppPP, SysAppInfoPtr
*actionCodeAppPP) SYS_TRAP(sysTrapSysGetAppInfo);
#define memNewChunkFlagAllowLarge 0x1000
#endif
void *large_malloc(unsigned long size) {
unsigned long ownerID;
#if defined (__palmosarm__)
SysAppInfoV50Type *blankAppInfoP = NULL;
#else
SysAppInfoPtr blankAppInfoP;
#endif
ownerID = SysGetAppInfo(&blankAppInfoP, &blankAppInfoP)->memOwnerID;
return MemChunkNew(0, size, ownerID | memNewChunkFlagNonMovable |
memNewChunkFlagAllowLarge);
}
To acess direct of BitmapType atributes you need:
#define ALLOW_ACCESS_TO_INTERNALS_OF_BITMAPS 1
I fink this will help you...
Good luck.
Veja quais são os assuntos do momento no Yahoo! +Buscados
http://br.maisbuscados.yahoo.com
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/