Results 1 to 8 of 8

Thread: Image split, rearrange. QLabel best way to display?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2008
    Posts
    7
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Image split, rearrange. QLabel best way to display?

    I have seen another post where someone wanted to split an image into 4 pieces, rearrange them and put back into display.

    I am interested in taking an image, removing the bottom pixel line, and moving it to the top of the image. I would like to have this in a loop so the picture is rotating from bottom to top continually (basically making an image marquee).

    I have had success in using QLabel to display the picture, using third party code to copy the bottom to top, save the file, then re-read the file into QLabel. However the process is slow and I am looking for a faster alternative.

    I thought I could use QImage::copy() but I don't understand how I can rearrange the copied portions and save as a new QImage for display.
    Last edited by fire; 11th August 2008 at 15:55.

Similar Threads

  1. QLabel size, for image display
    By C167 in forum Qt Programming
    Replies: 13
    Last Post: 25th October 2013, 16:09
  2. can Qlabel display a series of image one by one ?
    By jirach_gag in forum Qt Tools
    Replies: 3
    Last Post: 11th August 2008, 15:36
  3. Display only PNG image on desktop
    By durbrak in forum Qt Programming
    Replies: 32
    Last Post: 15th March 2008, 21:55
  4. QScrollArea display custom QLabel
    By spawnwj in forum Qt Programming
    Replies: 6
    Last Post: 6th December 2006, 03:38
  5. How and when to repaint a widget ?
    By yellowmat in forum Newbie
    Replies: 7
    Last Post: 3rd April 2006, 16:36

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.