>K [ 1 T 3 ImageMagick PixelPacket StructureE


/ImageMagick PixelPacket Structure

kThe PixelPacket structure is used to represent DirectClassIcolor pixels in ImageMagick. If the imageGis indicated as a PseudoClassMimage, its DirectClass representation is only valid immediately after callingQSyncImage(). If an image is set as PseudoClass and the DirectClass representationMis modified, the image should then be set as DirectClass. Use QuantizeImage()Hto restore the PseudoClass colormap if the DirectClass representation is modified.C

The members of the PixelPacket structure are shown in thefollowing table:
 57  !,(!"#%##%"%""$%%%%##,yyy
PixelPacket Structure Members

Member


Type

&
Interpretation

n
RGBColorspace (4)

F
RGBColorspace +$matte/(4) 

N
CMYKColorspace

redQuantumRedRedCyan
greenQuantumGreenGreenMagenta
blueQuantumBlueBlueYellow
opacityQuantumOpacityOpacityBlack
indexunsigned shortIndex into image colormap(2)Index into image colormap(2)Index into image colormap(2)
&

Notes:

    
  1. IQuantum is an unsigned short (MaxRGB=65535) if ImageMagick is built usingB-DQuantumLeap. Otherwise it is an unsigned char (MaxRGB=255).
  2. 
  3. ‘RGB index is only valid for PseudoClass images (class=PseudoClass).
  4. 
  5. FSyncImage() may be used to synchronize the DirectClass color pixels to&the current PseudoClass colormap.
  6. 
  7. QFor pixel representation purposes, all colorspaces are treated like RGBColorspaceexcept for CMYKColorspace.
  8. 



J

Home Page@ Image manipulation software that works like magic.