Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. how can we extract mouse selected area pixels
Qt 6.11 is out! See what's new in the release blog

how can we extract mouse selected area pixels

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 435 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    chandrasekhar.embedded
    wrote on last edited by
    #1

    Hi all , how we can extract mouse selected area pixels into array,suggestions please.

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      hi

      You could use
      http://doc.qt.io/qt-5.5/qrubberband.html#details
      for the visual effect of selecting the area,
      then use copy command
      http://doc.qt.io/qt-5.5/qpixmap.html#copy
      to create pixmap with only that area
      and then use your code from
      https://forum.qt.io/topic/61149/efficient-way-to-extract-pixels-from-image
      to process the pixels of the copied area.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved