>K [ 1 T 3 ImageMagick PixelPacket StructureV<> 
H



/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.M

The members of the PixelPacket structure are shown in the followingtable:
 .7!%!!"#%##%"%""$%%%%#
PixelPacket Structure Members

Member


Type

&
Interpretation

n
RGBColorspace (3)

F
RGBColorspace +Smatte(3) 

N
CMYKColorspace

redQuantumRedRedCyan
greenQuantumGreenGreenMagenta
blueQuantumBlueBlueYellow
opacityQuantumIgnoredOpacityBlack
&

Notes:

    
  1. IQuantum is an unsigned short (MaxRGB=65535) if ImageMagick is built usingE-DQuantumDepth=16 Otherwise it is an unsigned char (MaxRGB=255).
  2. 
  3. FSyncImage() may be used to synchronize the DirectClass color pixels to&the current PseudoClass colormap.
  4. 
  5. QFor pixel representation purposes, all colorspaces are treated like RGBColorspaceexcept for CMYKColorspace.
  6. 


Home Page9Image manipulation software that works like magic.