D
dragonchow
Unregistered / Unconfirmed
GUEST, unregistred user!
……
SetMapMode(Canvas.Handle,MM_ANISOTROPIC);
……
SetWindowExtEx(image1.Canvas.Handle,640,480,nil);
SetViewportExtEx(image1.Canvas.Handle,640,480,nil);
image1.Canvas.Rectangle(10,10,100,100);
……
SetWindowExtEx(image1.Canvas.Handle,640,480,nil);
SetViewportExtEx(image1.Canvas.Handle,1024,768,nil);
image1.Canvas.Rectangle(10,10,100,100);
输出的结果是一样的,那如果要在image上用不同的坐标绘图,该怎么办呢
SetMapMode(Canvas.Handle,MM_ANISOTROPIC);
……
SetWindowExtEx(image1.Canvas.Handle,640,480,nil);
SetViewportExtEx(image1.Canvas.Handle,640,480,nil);
image1.Canvas.Rectangle(10,10,100,100);
……
SetWindowExtEx(image1.Canvas.Handle,640,480,nil);
SetViewportExtEx(image1.Canvas.Handle,1024,768,nil);
image1.Canvas.Rectangle(10,10,100,100);
输出的结果是一样的,那如果要在image上用不同的坐标绘图,该怎么办呢