Results 1 to 2 of 2

Thread: Bmp image to hexa data ????

  1. #1
    Join Date
    Jul 2012
    Posts
    40
    Qt products
    Qt4 Qt/Embedded

    Default Bmp image to hexa data ????

    hi all ,
    Is there any scope to convert windows bitmap image to hexa data of c array ???? plz plz provide me some hint on this whether we can or not ???

    Below is the sample hexa of an image...
    0x0,0x0,0x0,0xea,0xea,0xec,0x80,0x80,0x82,0x76,0x7 4,0x76,0x7b,0x77,0x78,0x73, //*16bytes*
    0x6e,0x6f,0xaa,0xa8,0xa9,0xff,0xff,0xff,0x0,0x0,0x 0,0xe0,0xdf,0xe0,0x27,0x25, //*16bytes*
    0x26,0x14,0x10,0x11,0x1c,0x18,0x19,0xb,0x7,0x8,0x6 e,0x6c,0x6c,0xff,0xff,0xff, //*16bytes*
    0x0,0x0,0x0,0xe2,0xe0,0xe1,0x36,0x32,0x33,0x21,0x1 d,0x1e,0x2a,0x26,0x27,0x19, //*16bytes*



    Regards
    Beginner

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Bmp image to hexa data ????

    Do you want to show the image data in a string?
    Look at QImage::bits or similar functions. Please read the documentation.

Similar Threads

  1. How to create a smooth image from data?
    By lni in forum Qt Programming
    Replies: 3
    Last Post: 17th November 2011, 00:43
  2. How to Display/Paint raw image data.
    By vinaykusta in forum Qt Programming
    Replies: 5
    Last Post: 12th October 2011, 14:01
  3. Replies: 3
    Last Post: 16th December 2008, 14:38
  4. Using a 2d data array to create an image
    By dbrmik in forum Newbie
    Replies: 20
    Last Post: 28th October 2008, 17:22
  5. Help needed handling image data
    By toratora in forum General Programming
    Replies: 2
    Last Post: 11th May 2007, 09:24

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.