how to display pixels with Tcl/TK

Status
Not open for further replies.

nineleo

Newbie level 5
Joined
Oct 16, 2003
Messages
10
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
54
if I have some RGB data,I want to display them on screen pixel by pixel.
Can Tcl/Tk implement such function?
Can anyone help me or give me some reference?
thx
 

Yes, you can, but I never tried.
Just look at the canvas widget... from unix platform, type man n widget and you will get the help.
Here is a brief part of canvas man page.
Best regards. Paolo
[hr:7c49a97209]
BITMAP ITEMS
Items of type bitmap appear on the display as images with two colors,
foreground and background. Bitmaps are created with widget commands of
the following form:
pathName create bitmap x y ?option value option value ...?
The arguments x and y specify the coordinates of a point used to posi­
tion the bitmap on the display (see the -anchor option below for more
information on how bitmaps are displayed). After the coordinates there
may be any number of option-value pairs, each of which sets one of the
configuration options for the item. These same option-value pairs may
be used in itemconfigure widget commands to change the item's configura­
tion.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…