Can't get color value from DeviceN colorspace


hi.

i use code:

 

if (colorspec.value.colorobj2)

{

    colorvalue = (pdedevicencolors)colorspec.value.colorobj2;

    invals[0] =  ( float )asfixedtrunctoint32(pdedevicencolorsgetcolorvalue(colorvalue, 0));

}

 

when colorspace's stream {0 0} ok.

 

but use colorspace complex stream:

{ dup 1 mul 2 index 0 mul 2 copy lt { exch } if pop 3 index 0 mul 2 copy lt { exch } if pop 4 index 0 mul 2 copy lt { exch } if pop 5 1 roll dup 0 mul 2 index 1 mul 2 copy lt { exch } if pop 3 index 0 mul 2 copy lt { exch } if pop 4 index 0 mul 2 copy lt { exch } if pop 6 1 roll dup 0 mul 2 index 0 mul 2 copy lt { exch } if pop 3 index 1 mul 2 copy lt { exch } if pop 4 index 0 mul 2 copy lt { exch } if pop 7 1 roll dup 0 mul 2 index 0 mul 2 copy lt { exch } if pop 3 index 0 mul 2 copy lt { exch } if pop 4 index 1 mul 2 copy lt { exch } if pop 8 1 roll pop pop pop pop }

 

in acrobat 10.0 code still work good. in acrobat 11.0 have access violation exception when try color value.

 

please tell me in reason.

it bug, you'd need open official tech support case developer support.



More discussions in Acrobat SDK


adobe

Comments

Popular posts from this blog

Thread: Can not create raid array: mdadm: no raid-devices specified.

Thread: HOW TO: Package and theme GTK+ / Gtkmm apps in Linux for Windows

Thread: Twinview issues