FLTK logo

Re: Embedding images into executable

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Embedding images into executable Greg Ercolano May 14, 2007  
 
Andy wrote:
> When I compile, the program doesn't display the images unless I put them in relative directories to the executable. Is there a way I could embed the images into the program itself and use them?

	Ya, XPM files are exactly for this purpose; you can just #include them,
	or even paste them inline.

	See:
	http://seriss.com/people/erco/fltk/#DraggableBoxes
	http://seriss.com/people/erco/fltk/thumbnail_scroller.txt

	Most paint programs and image programs (gimp, xv, convert)
	will let you save as xpm files.

Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.