Results 1 to 2 of 2

Thread: İmage Convert Black and White

  1. #1
    Join Date
    Nov 2009
    Posts
    16
    Thanks
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default İmage Convert Black and White

    hi,
    How can i image black and white converted

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: İmage Convert Black and White

    You might try using QImage::convertToFormat with QImage::Format_MonoLSB argument.
    Or you can manually iterate over the pixels and set them black or white for a given threshold level.

Similar Threads

  1. QGLWidget renders black
    By jonasbalmer in forum General Programming
    Replies: 2
    Last Post: 24th January 2010, 15:32
  2. Displaying Text on Black and White Screen
    By Stobie in forum Qt for Embedded and Mobile
    Replies: 4
    Last Post: 8th December 2009, 01:03
  3. İmage add button
    By electronicboy in forum Qt Programming
    Replies: 1
    Last Post: 26th October 2009, 09:50
  4. Printing plot black & white
    By maybe78 in forum Qwt
    Replies: 4
    Last Post: 9th October 2009, 07:39
  5. Drag and drop and black background
    By zerobala in forum Qt Programming
    Replies: 2
    Last Post: 15th May 2008, 20:34

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.