Results 1 to 3 of 3

Thread: Best way to handle huge QImage setColorTable change

Hybrid View

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

    Default Re: Best way to handle huge QImage setColorTable change

    Keep your tiles as QImage instances and apply the new colormap to each small image and then convert it to a pixmap (keeping the original image). You can optimize the whole process by using memcpy (or qmemcpy) on QVector::data() to quickly switch the color table contents.
    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:

    bruceariggs (24th September 2011)

Similar Threads

  1. Handle QTableWidget's column width change
    By dorians58 in forum Newbie
    Replies: 0
    Last Post: 28th July 2010, 19:24
  2. Deploy the huge QtWebKit4.dll
    By ahmdsd_ostora in forum Qt Programming
    Replies: 30
    Last Post: 25th July 2010, 23:25
  3. How to change the values of the pixels in an Qimage?
    By kid17 in forum Qt Programming
    Replies: 8
    Last Post: 23rd November 2008, 20:52
  4. Huge Text File
    By mcosta in forum Qt Programming
    Replies: 3
    Last Post: 11th January 2008, 19:23

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