Ask a Question related to Adobe Acrobat SDK, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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?
    4. 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...
    5. 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...
  3. #2

    Default 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

  4. #3

    Default Re: Indexed color space

    Thanks Aandi. Of course it's not possible to cast.
    now it works perfectly.
    Andrej_Dino@adobeforums.com Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139