Create Image from array of data

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
dudyalas

Create Image from array of data

Post by dudyalas »

I have array of data r[0:325] , g[0:325] , b[0:325] How do we write a image (JPG or BMP) or any other format with these available data .
Preferable: command line option.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Create Image from array of data

Post by anthony »

Create a Enumerated Pixel Image....
See IM Examples
http://www.imagemagick.org/Usage/files/#txt

It is very easy to print this.
You can also generate NetPBM image formats whcih is also a simple and straight forward format. Follow the lines from the above for this 'alturnative'.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply