You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
i tried drawing some graphics on an Image component without success. Calling BeginScene method returns me an error: Type Error: BeginScene called with invalid arguments. Error: Colud not find a method with compatible arguments.
Below is the code called on a onclick method of the form. The Image component is named ImageCanvas
Hi,
i tried drawing some graphics on an Image component without success. Calling BeginScene method returns me an error: Type Error: BeginScene called with invalid arguments. Error: Colud not find a method with compatible arguments.
Below is the code called on a onclick method of the form. The Image component is named ImageCanvas
def do_button_click(self, sender):
self.ImageCanvas.Bitmap.LoadFromFile('canvas.png')
myrect = RectF(50, 30, 150, 200)
canvas = self.ImageCanvas.Bitmap.Canvas
canvas.BeginScene()
canvas.Stroke.Kind = 1;
canvas.Stroke.Color = 0xFF00FF00;
canvas.StrokeThickness = 4;
canvas.DrawEllipse(myrect, 255);
canvas.EndScene()
I tried several arguments without any success
Any suggestion?
Thank you
Regards
Alessandro
The text was updated successfully, but these errors were encountered: