Results 1 to 11 of 11

Thread: PNG file is not rendered properly when using as texture for QBrush

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: PNG file is not rendered properly when using as texture for QBrush

    I think that if you have dotted pattern on the pixmap, you will alwys get distortions if the effective scaling factor is different than 1:1. You can apply the pattern after scaling the item but it requires a bit of calculations and code writing. You'd have to reverse the scaling factor in the painting routine of the item so that you fill its area as it weren't scaled while maintaining the scale of the item itself.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


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

    skeletor (23rd September 2010)

Similar Threads

  1. Replies: 6
    Last Post: 4th September 2010, 22:19
  2. Replies: 14
    Last Post: 20th March 2010, 19:43
  3. changing svg graphic attributes once rendered
    By barrygp in forum Qt Programming
    Replies: 0
    Last Post: 13th December 2008, 02:09
  4. Webkit rendered fonts
    By carl in forum Qt Programming
    Replies: 0
    Last Post: 5th September 2008, 16:49
  5. QBrush texture pattern
    By edb in forum Qt Programming
    Replies: 4
    Last Post: 17th April 2007, 13:18

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.