This procedure draws two diagonal straight lines on an image in a VCL form.
with Canvas do begin MoveTo(0,0); LineTo(ClientWidth, ClientHeight); MoveTo(0, ClientHeight); LineTo(ClientWidth, 0); end;
Canvas->MoveTo( 0, 0 ); Canvas->LineTo( ClientWidth, ClientHeight ); Canvas->MoveTo( 0, ClientHeight ); Canvas->LineTo( ClientWidth, 0 );
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|