Results 1 to 3 of 3

Thread: Can't see scanned image on QTWAIN

  1. #1
    Join Date
    Apr 2024
    Posts
    1
    Qt products
    Qt4 PyQt3 PyQt4
    Platforms
    Windows

    Default Can't see scanned image on QTWAIN

    Hello guys,

    I used the class Qtwain for scaned image. scans, the image is not shown.

    What is this??

    QPixmap::fromWinHBITMAP(), failed to get bitmap info ()

    Any suggestions to solve this problem?

    This is my code:

    bool QTwain::save(QString dir)
    {
    return QPixmap::fromWinHBITMAP(m_hBitmap).toImage().save( dir,"jpg");
    "Life's a climb. But the view is great" uno online

  2. #2
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    516
    Thanks
    12
    Thanked 77 Times in 75 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Can't see scanned image on QTWAIN

    Hi, I guess something is wrong with m_hBitmap. How do you get that?

    Ginsengelf

  3. #3
    Join Date
    Sep 2024
    Posts
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Can't see scanned image on QTWAIN

    It sounds like you're encountering an issue with the bitmap handle. Can you confirm if m_hBitmap is valid and contains a valid image before you attempt to create the QPixmap?

Similar Threads

  1. Replies: 0
    Last Post: 10th February 2018, 11:40
  2. Replies: 3
    Last Post: 3rd August 2012, 11:35
  3. I cant see image Scaned. QTWAIN
    By elegido03 in forum Qt Programming
    Replies: 0
    Last Post: 25th April 2011, 16:52
  4. Finding marks on scanned image for alignment
    By caduel in forum Qt Programming
    Replies: 1
    Last Post: 23rd September 2007, 03:10
  5. need help about calibrating scanned maps.
    By high_flyer in forum General Discussion
    Replies: 4
    Last Post: 26th July 2006, 19:27

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.