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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

doesn't compile don't know why

Status
Not open for further replies.

irenicus

Technical User
Jul 15, 2004
11
FR

i'm making button with icons and when i try

image create photo imgleft -file [file join . arrows leftArrow.bmp]

i've the error :
couldn't recognize data in image file "./arrows/leftArrow.bmp"

whereas if i write :
image create photo imgleft -file [file join . arrows leftArrow.gif]

(both leftArrow.bmp and leftArrow.gif exists in the directory ./Arrows)

I'm working on win2000Pro with wish84
the bitmap was created with paint in 24bits colors
 
In Tk, I think .bmp is only a B&W image.

Bob Rashkin
rrashkin@csc.com
 
do you know any kind of pixmap 24bits that tk can read?
i need to display a 24bit pixmap image into a button (no other choice .gif .jpg ... forbiden)
 
Look into the "Img" package (will require a "package require" statement).

Bob Rashkin
rrashkin@csc.com
 
ok but will it work with freewarp (a free wrapper to build standalone .exe from tcl)?
 
I think so but I've never done it with a whole library (only the Tktable.dll). Look at the Freewrap Howto page item 7 (Wrapping and using TCL/TK extensions (packages)).

Bob Rashkin
rrashkin@csc.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top