Re: [suse-programming-e] How to display binary data in bmp formart
On Friday 27 August 2004 15:20, j d wrote:
Hi,
Am using suse9.1, kernel-2.6.4, my task is to display an image(preferbly bmp format) from binary data read by some sensors, using QT.am suing QT-3.3.1.
Not really! You're a bit vague... If you have an image in BMP format (or almost any other popular format for that matter) you can display it quite easily. Crib some code from the "showimg" example in the qt3-examples package. --
eatapple core dump
--- Derek Fountain
On Friday 27 August 2004 15:20, j d wrote:
Hi,
Am using suse9.1, kernel-2.6.4, my task is to display an image(preferbly bmp format) from binary data read by some sensors, using QT.am suing QT-3.3.1.
Not really! You're a bit vague...
am sorry derek, really am in hurry. nyways, actually i am getting raw data in binary format from a finger print sensors, now i need to put the same finger image read by finger print sensors, on the gui, for that am using QT, now can you tell me how can i convert the raw binary data into bmp format, so that i can put the image on the gui screen?
If you have an image in BMP format (or almost any other popular format for that matter) you can display it quite easily. Crib some code from the "showimg" example in the qt3-examples package.
--
eatapple core dump
regards, JD
-- To unsubscribe, email: suse-programming-e-unsubscribe@suse.com For additional commands, email: suse-programming-e-help@suse.com Archives can be found at: http://lists.suse.com/archive/suse-programming-e
_______________________________ Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo! Enter now. http://promotions.yahoo.com/goldrush
--- Derek Fountain
On Friday 27 August 2004 15:20, j d wrote:
Hi,
Am using suse9.1, kernel-2.6.4, my task is to display an image(preferbly bmp format) from binary data read by some sensors, using QT.am suing QT-3.3.1.
Not really! You're a bit vague...
If you have an image in BMP format (or almost any other popular format for that matter) you can display it quite easily. Crib some code from the "showimg" example in the qt3-examples package.
have seen showimg. in that they are simply taking one movie and displaying it on the scree, where as in my case, i don't have img, i myself need to prepare one image by any convertion method, which i don't know, and have to display that image on the scree, so basically wat i want to say is, i have just binary data file, so first with that data i need to make a bmp image file and then i have to display it!!
--
eatapple core dump
-- To unsubscribe, email: suse-programming-e-unsubscribe@suse.com For additional commands, email: suse-programming-e-help@suse.com Archives can be found at: http://lists.suse.com/archive/suse-programming-e
__________________________________ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_mail
On Friday 27 August 2004 11:32, j d wrote:
have seen showimg. in that they are simply taking one movie and displaying it on the scree, where as in my case, i don't have img, i myself need to prepare one image by any convertion method, which i don't know, and have to display that image on the scree, so basically wat i want to say is, i have just binary data file, so first with that data i need to make a bmp image file and then i have to display it!!
Have a look at: bool QImage::loadFromData ( const uchar * buf, uint len, const char * format) bool QImage::loadFromData ( QByteArray buf, const char * format = 0 ) and QImageIO if you want to define your own image format. Perhaps QImageIO can detect the image format by itself, otherwise you have to code your own format. best, Jeroen -- Kile - KDE Integrated LaTeX Editor http://kile.sourceforge.net
participants (3)
-
Derek Fountain
-
j d
-
Jeroen Wijnhout