Whta does the three columns in a TXT image file mean?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
yxs4406

Whta does the three columns in a TXT image file mean?

Post by yxs4406 »

For example, the pixel line
0,0: (114, 119, 42) #72772A
has three number in bracket, what does it mean?
I appreciate you help.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

The three numbers are the red, green, and blue intensities scaled from 0 .. 255 for that particular pixel.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post by anthony »

Actually they can be scale 0 to 255 ot 0 to 65535 depending on the save -depth setting.

See IM examples on the "txt:" file format...
http://www.cit.gu.edu.au/~anthony/graph ... files/#txt
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply