Results 1 to 2 of 2

Thread: glitchy QPixmap drawing on paint area

  1. #1
    Join Date
    Jul 2012
    Posts
    10
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: glitchy QPixmap drawing on paint area

    Hi. I've tried to change only color of existing QPixmap, but use old alpha. I've changed pixels colors with setPixel using old alpha, but when I'm drawing this image everything glitches.

    https://dl.dropbox.com/u/44131220/undeletable/scr15.png
    https://dl.dropbox.com/u/44131220/undeletable/scr16.png

    Code and application visable on screenshots. If I don't change rgb values everything looks good.


    Added after 20 minutes:


    Ok, i quite don't get it, but rgb value can't be bigger than alpha value. If I use

    setPixel(16, 0, 0, 16);

    I'm getting 100% red transparent pixel. Just If someone have the same problem
    Attached Images Attached Images
    Last edited by Lapsio; 18th November 2012 at 19:39.

  2. #2
    Join Date
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: glitchy QPixmap drawing on paint area

    maybe if you provided a complete + compilable example, then it would be simpler for others to test.
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

Similar Threads

  1. Can QRubberBand paint out of clipping area ?
    By topoden in forum Qt Programming
    Replies: 2
    Last Post: 18th February 2010, 13:43
  2. Replies: 0
    Last Post: 17th September 2009, 11:36
  3. Replies: 4
    Last Post: 28th August 2008, 13:13
  4. select QPixmap area with mouse
    By tommy in forum Newbie
    Replies: 2
    Last Post: 16th November 2007, 18:15
  5. PrimitiveElemet's Paint Area
    By derick in forum Qt Programming
    Replies: 1
    Last Post: 1st February 2006, 15:52

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.