I need some help about coding this function. FIrst, i have to test my
begins, but i'm not so good with C++ syntax as i thought. When
compiling, there were a lot of errors, so i need some help...
Here is my actual code :
BOOL AquaSalGraphics::drawEPS( long nX, long nY, long nWidth, long
nHeight, void* pPtr, ULONG nSize )
{
fprintf( stderr, "<<WARNING>> AquaSalGraphics::DrawEPS not yet
implemented!\n" );
//Creating callback structure for data provider
void *quartzBuffer = malloc(nSize);
CGDataProviderGetBytesCallback getBytesOfData = malloc(sizeof
(CGDataProviderGetBytesCallback));
getBytesOfData->info = pPtr;
getBytesOfData->buffer=quartzBuffer;
getBytesOfData->count=nSize;
void MyProviderReleaseInfo(void *pPtr)
struct CGPSConverterCallbacks *callbacks = malloc(sizeof(struct
CGPSConverterCallbacks));
callbacks->getBytes = getBytesOfData;
callbacks->skipBytes = nil;
callbacks->rewind = nil;
callbacks->releaseProvider = MyProviderReleaseInfo;
//Create the eps preview ????
//Creating the data provider
CGDataProviderRef epsDataProvider=CGDataProviderCreate(pPtr,const
CGDataProviderCallbacks *callbacks);
//création de l'image à aprtir du data provider et de l'image proxy
CGImageRef PMCGImageCreateWithEPSDataProvider (CGDataProviderRef
epsDataProvider, CGImageRef CGImageCreate(nWidth,nHeight,8,8,2));
return FALSE;
}
Some ideas ?? Thanks a lot
Damien