Home > Mobile >  Subdivision with QT how the circle and fill in each area for color
Subdivision with QT how the circle and fill in each area for color

Time:09-19

I want to draw a circle, then internal subdivision, then each small area for color fill (want to take advantage of matrix corresponding to each small area, through the RGB color fill), excuse me this how to implement? Thank you very much!

CodePudding user response:

Use QImage, direct manipulation of pixel color to fill the QImage has a member method, like call setPixel (int x, int y, QColor color)

CodePudding user response:

reference 1st floor Italink response:
use QImage, direct manipulation of pixel color to fill the QImage has a member method, like call setPixel (int x, int y, QColor color)
tried according to what you said, used for filling 10 pixels, can achieve, thanks!!!!!!!!!!
  •  Tags:  
  • Qt
  • Related