transparent Drawline problem

OS: Windows8
GDI+ :ON
Double buffer : ON/OFF
EraseBG: ON/OFF

Trying to draw something on to canvas background image (gray) using mousedraw. But there is envelope around the line. Especially there are white points at the each corner of the lines. I could not find the reason…

[quote=124790:@Manton Agean]OS: Windows8
GDI+ :ON
Double buffer : ON/OFF
EraseBG: ON/OFF

Trying to draw something on to canvas background image (gray) using mousedraw. But there is envelope around the line. Especially there are white points at the each corner of the lines. I could not find the reason…
[/quote]

Without sample code it is impossible to understand what may be going on …

Actually, I tried to add drawing function to objectsincanvas xojo example
I put the following code into mouse_drag event

[code] my_drawing_picture.Graphics.ForeColor =my_PenColor
my_drawing_picture.Graphics.PenHeight=my_Pen_thick
my_drawing_picture.Graphics.PenWidth=my_Pen_thick
my_drawing_picture.Graphics.DrawLine(LastX,LastY,X,Y)

LastX = X
LastY = Y

Redraw[/code]

…and the following code in the objectcontainercanvas Paint event

g.Transparency=1 g.DrawPicture(my_drawing_picture,0,0)

This code does not work at all …

Michel code works… at least appears :slight_smile:
when I use fillrect command white spots not exist…

those may be antialias artifacts.

Yes Christian,
I just realised that…

I added " ....graphics.antialias=false" —> white spots NOT EXIST

Antialias=TRUE but coordinates constant ,like .....Graphics.DrawLine(10,10,100,100) —> white spots NOT EXIST

Antialias=True drawingLine using Mouse down and Mouse Drag events —>white spots EXIST

Is there any way to get smooth drawings using mouse?
Thank you.

Is this problem exist on compiled executable(my xojo 2014 r1.1 trial yet)
or this is a bug?
Thank you…