Skip to content

Solves bug drawing rectangles and dashed lines.#2

Open
DomingoGP wants to merge 1 commit into
edivando-fpc:masterfrom
DomingoGP:BugDashedLineRectangle
Open

Solves bug drawing rectangles and dashed lines.#2
DomingoGP wants to merge 1 commit into
edivando-fpc:masterfrom
DomingoGP:BugDashedLineRectangle

Conversation

@DomingoGP
Copy link
Copy Markdown

Hi,

when testing this sample code taken from tutorial, draws a a figure like a triangle. and a shape like a triangle instead of a dotted line.

This patch solves both problems.

procedure TForm1.Button1Click(Sender: TObject); var image: TBGRABitmap; c: TBGRAPixel; begin image := TBGRABitmap.Create(ClientWidth,ClientHeight,ColorToBGRA(ColorToRGB(clBtnFace))); c := ColorToBGRA(ColorToRGB(clWindowText)); image.RectangleAntialias(80,80,300,200,c,10); image.PenStyle := psDot; image.DrawLineAntialias(20,300,150,300,c,10,true); image.Draw(Canvas,0,0,True); image.free; end;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant