Results 1 to 2 of 2

Thread: QPixmap replace white pixels by blacks

Threaded View

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

    Default Re: QPixmap replace white pixels by blacks

    Convert the pixmap into QImage and access each Pixel by QImage::pixel .

    Then you can check if the pixel is white, change it to black

  2. The following user says thank you to aamer4yu for this useful post:

    bunjee (20th August 2008)

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.