Let's say I got a black circle drawned on a bitmap object, in the middle of a white background...
How do I paint the black circle to red...
Don't tell me to paint another circle over it..., I'm looking for a way to paint a single color from a specifyed point to another color...
I don't really feel like going through each pixel... it's my last resort, but my guess is that there is something out there way easier... right?
I've tried...
VB Code:
'Dim p As New Region(New Rectangle(x, y, x + 1, y + 1)) 'Dim newFillMode As System.Drawing.Drawing2D.FillMode = System.Drawing.Drawing2D.FillMode.Alternate 'Buffer.FillRegion(MyPen.Brush, p) Dim Point1 As New PointF(x, y) Dim Point2 As New PointF(x + 1, y) Dim Point3 As New PointF(x, y + 1) Dim Point4 As New PointF(x + 1, y + 1) Dim pF As PointF() = {Point1, Point2, Point3, Point4} 'Buffer.FillPolygon(MyPen.Brush, pF, Drawing2D.FillMode.Winding) Dim i As New System.Drawing.Drawing2D.GraphicsPath(pF, Nothing) Buffer.FillPath(MyPen.Brush, i)
Plenty of crap that always returned the same kind of result:
I got a square and it just does the same as clearing the section to another color...![]()
HEEEEKO![]()
![]()




, I'm looking for a way to paint a single color from a specifyed point to another color...
Reply With Quote