Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

displaying color image (stored in a C array) in Tk

Status
Not open for further replies.

fd97207

Programmer
Jul 27, 2002
1
US
I have a color image (width w, height h) stored in an array A of type unsigned char (size of A is w*h*3; each pixel (x,y) in the image has associated with it the r, g, and b values of the pixel) so A[0] has the red value of pixel (0,0) and A[2] has the blue value of pixel (0,0), A[3] has red value of pixel (1,0) etc. How can I display this image using Tk? Thanx.

sid
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top