Results 1 to 6 of 6

Thread: QImageReader and High Resolution pictures

  1. #1
    Join Date
    Apr 2008
    Location
    Russia, Moscow
    Posts
    86
    Thanks
    2
    Thanked 7 Times in 7 Posts
    Qt products
    Qt4

    Question QImageReader and High Resolution pictures

    I have about 2Gb National Geographics Maps http://www.google.com/search?q=National+Geographic+Maps
    with high resoulution. I want create scroller with QGraphicsScene/paintEvent and i don't wan't to load whole image to memory. How i can read images like a QTextStream pixel by pixel from HDD without knowing a format file? We need a streaming for pixels.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QImageReader and High Resolution pictures

    You'd have to create your own image format plugin. You can then read the data frame by frame.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Apr 2008
    Location
    Russia, Moscow
    Posts
    86
    Thanks
    2
    Thanked 7 Times in 7 Posts
    Qt products
    Qt4

    Default Re: QImageReader and High Resolution pictures

    But for this i must know picture format (BMP, JPEG, PNG, TIFF etc) or i can use Qt features for this?

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QImageReader and High Resolution pictures

    Yes, you have to know the image format. If you're able to tell where an image starts or ends, you can use a different approach - use QImage::loadFromData() and point it to the data containing a single image (header included).
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Apr 2008
    Location
    Russia, Moscow
    Posts
    86
    Thanks
    2
    Thanked 7 Times in 7 Posts
    Qt products
    Qt4

    Default Re: QImageReader and High Resolution pictures

    Quote Originally Posted by wysota View Post
    If you're able to tell where an image starts or ends, you can use a different approach - use QImage::loadFromData() and point it to the data containing a single image (header included).
    I can set only size, there is no start or end parameters. May be i can generate buffer with header and partial data, but diffirent formats have diffirent size of header and header itself.

    I try to compile ImageMagick with MinGW, but program crashed with exceptions inside IM dll.

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QImageReader and High Resolution pictures

    I'm not sure in what way would ImageMagick be helpful to you.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


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.