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. Draw an image then convert it to pixels' matrix

Draw an image then convert it to pixels' matrix

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 1.4k 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.
  • - Offline
    - Offline
    -OggY-
    wrote on last edited by
    #1

    Hi. I'd like to make a simple drawing area in my program, where the user can draw a simple black-and-white objects. After that I need this object in form of boolean pixels' matrix[height][width], where "1" is black pixel and "0 is white. Which widgets should I use? Thank you.

    1 Reply Last reply
    0
    • - Offline
      - Offline
      -OggY-
      wrote on last edited by
      #2

      Solved my problem with "this":http://qt-project.org/doc/qt-5.0/qtwidgets/widgets-scribble.html example.

      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