On Friday 27 April 2012 00:39:12 Patrick Goupell wrote: > I am trying to use the loadfromfile function of the timage component but > I have not been able to do it. > > Has anyone done it? What does you coding statement look like? > > I cannot figure out what to put for the format (parameter 2) or the > index (parameter 3) values. > > So I just do timage1.loadfromfile (sfilename) but I dont get any image > displayed.
MSEgui has bindings to the image formats FPC provides in packages/fcl-image/src which are slow BTW. In order to include the needed driver(s) in your application add the accordant mseformat*write - mseformat*read MSEgui binding units from lib/common/image to uses. The format label and possible write paramters are defined in the binding units. <timage>.bitmap.loadfrom*() format parameter can be '', MSEgui the tries to guess the format from image datata and uses the appropriate *registered* reader. The index parameter is for "ico" format and defines the loaded image if there are several images stored in the file. I see there is a tiff reader/writer in fpimage, I'll try to add TIFF bindings. Martin ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk