Ask a Question related to Adobe Acrobat SDK, Design and Development.
-
Andrej_Dino@adobeforums.com #1
Indexed color space
Hi,
I am trying to create any "Indexed" colorspace but I always fail.
This is the simplest code I've tried
PDEIndexedColorData* csData = new PDEIndexedColorData;
csData->size = sizeof( PDEIndexedColorData );
csData->baseCs =
PDEColorSpaceCreateFromName(ASAtomFromString("Devi ceGray"));
csData->hival = 1;
csData->lookupLen = 2;
unsigned char aaa[] = { 255, 0 };
csData->lookup = (char*)aaa;
PDEColorSpace pdeColoSpace = PDEColorSpaceCreate (
ASAtomFromString("Indexed"), (PDEColorSpaceStruct *) csData );
but my all tries end with exception "Access violation reading location
0x00000018".
Does anybody see a problem with the code above?
thanks.
Andrej_Dino@adobeforums.com Guest
-
how to create a Indexed color space
Hi, I am trying to create any "Indexed" colorspace but I always fail. This is the simplest code I've tried PDEIndexedColorData* csData = new... -
Unknown PDF Color Space
I've created a pdf using Acrobat Distiller (5.0.5). The pdf looks fine when opening it with the Reader. When opening it with Illustrator (10), I get... -
Converting to Indexed Color
What has changed in the settings that I am not seeing from Photoshop 7.0 to Photoshop CS in the Indexed Color option? -
Question about color match monitor/printout and Color space
I am using a Minolta F200 camera; the EXIF data show :color space - sRGB; I am using a Laptop (Toshiba Satellite), so not much possibilties for... -
Color Space
Can anyone tell me how to change the color space in photoshop elements 2.0? You can make a choice of 1. No color management, 2. Limited Color... -
Aandi_Inston@adobeforums.com #2
Re: Indexed color space
Typecasting PDEIndexedColorData* into (PDEColorSpaceStruct *) isn't
going to fly. Try filling in a separate (PDEColorSpaceStruct *)
structure, and avoid typecasting completely.
Aandi Inston
Aandi_Inston@adobeforums.com Guest
-
Andrej_Dino@adobeforums.com #3
Re: Indexed color space
Thanks Aandi. Of course it's not possible to cast.
now it works perfectly.
Andrej_Dino@adobeforums.com Guest



Reply With Quote

