Results 1 to 4 of 4

Thread: there is a way for qt to image mosaicking?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Oct 2009
    Posts
    483
    Thanked 97 Times in 94 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: there is a way for qt to image mosaicking?

    Quote Originally Posted by Vikram.Saralaya View Post
    Example, to copy 0th pixel of a specific row from bImage to cImage:
    Qt Code:
    1. QRgb* bImgLine = (QRgb*)bImage.scanLine(row);
    2. QRgb* cImgLine = (QRgb*)cImage.scanLine(row);
    3. *(cImgLine+40) = *(bImgLine+0);
    To copy to clipboard, switch view to plain text mode 
    Be careful, your code assumes that bImage has the same format as cImage (QImage::Format_RGB32). You should convert bImage to that format first.

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

    Vikram.Saralaya (13th January 2016)

Similar Threads

  1. Replies: 15
    Last Post: 24th July 2015, 22:33
  2. Replies: 3
    Last Post: 3rd August 2012, 10:35
  3. Replies: 6
    Last Post: 21st September 2009, 10:55
  4. Replies: 3
    Last Post: 14th March 2007, 08:09

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.