GIDForums  

Go Back   GIDForums > Computer Programming Forums > FLTK Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 29-Oct-2006, 09:02
Top_se Top_se is offline
New Member
 
Join Date: Oct 2006
Posts: 2
Top_se is on a distinguished road

Drawing Images


Hi guys!

Well, I`m new with programming in FLTK. I choose FLTK2 to begin, because I had problems to implement former versions in my IDE (VC++), but that`s not the point.
My problem is, that I don`t know how to draw images, whatever .gif, .jpg, .png or .bmp!

Here is my Code:

CPP / C++ / C Code:
	unsigned char Pfad = (unsigned char)"Bild.gif";
	const fltk::Rectangle Feld(0,0,80,80);
	fltk::drawimage(&Pfad,fltk::RGB8,Feld);


The result is, that I can see a gray rectangle on the position where my image should be ...
I tried to use gif-Images, JPG-Images, PNG-Images and BMP-Images, it`s allways the same ...

THX in advance for response!

And pls excuse my bad English, I`m a student from Germany, so it`s my bad school-english *g*
  #2  
Old 30-Oct-2006, 08:48
Caste's Avatar
Caste Caste is offline
New Member
 
Join Date: Oct 2006
Location: Wehrheim, Germany
Posts: 19
Caste is on a distinguished road

Re: drawing Images


Sorry Guys, I'll answer in German cause I'm a native speaker, too.

Hey, ich hatte das gleiche Problem auch mal und mein Fehler war einfach nur, dass die Pfadangaben nur relativ waren, d.h. nur wenn ich das Programm aus dem Verzeichnis aufgerufen habe, in dem auch die Bilder lagen (also nicht über die IDE) hab ich was gesehen. Versuch's doch einfach mal mit absoluten (also kompletten) Pfadangeben.
  #3  
Old 30-Oct-2006, 09:41
Top_se Top_se is offline
New Member
 
Join Date: Oct 2006
Posts: 2
Top_se is on a distinguished road

Re: drawing Images


danke, das hat wirklich geholfen!

He could help me, my problem is solved!
 
 

Recent GIDBlogToyota - 2008 September Promotion by Nihal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Question regarding the use of images conus AdSense Forum 3 28-Dec-2006 07:38
Downloading images WaltP Web Design Forum 3 30-Jul-2005 19:28
How to save a drawing to the file amgturk MS Visual C++ / MFC Forum 2 25-Jul-2005 00:29
Back to the drawing board... spudtheimpaler C Programming Language 9 15-Mar-2004 10:12
Why are my images distorted? rhino1616 Graphics Forum 0 27-Jun-2003 09:30

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 16:52.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.