Results 1 to 20 of 20

Thread: QPixmap pixel by pixel ?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    Join Date
    Jan 2006
    Posts
    371
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    14
    Thanked 18 Times in 17 Posts

    Default Re: QPixmap pixel by pixel ?

    Quote Originally Posted by tommy View Post
    Thanks Elcuco,

    Do you know if operating with Qimages (converting and reading them etc) is significantly faster that bitmaps?
    How do you open a QImage for data input? It's not really a file that you can open like you open a binary in C/C++, is it?
    Hi Tommy,

    I loaded the image using QImage::load(), and then I pass it to a ansi C library for manipulation. I know that in most cases, you can treat the bits() function as something similar to this:
    Qt Code:
    1. dword picture[SIZE_Y][SIZE_Y] ;
    To copy to clipboard, switch view to plain text mode 

    It will fail sometimes. Be warned (at least in MACs). If you want to review my code, here it is: http://code.google.com/p/qhocr/
    Last edited by elcuco; 3rd December 2007 at 21:08. Reason: updated contents

Similar Threads

  1. QPixmap and HBITMAP
    By ToddAtWSU in forum Qt Programming
    Replies: 1
    Last Post: 21st June 2006, 16:24

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
  •  
Qt is a trademark of The Qt Company.