The Gdi+ api provides antialiasing functions and these can be accessed under Clearwin for graphic regions (%gr). However, these do not appear to extend to windows created by %dw or windows created by the api function createwindow.
Is there an alternative method to achieve smooth lines ?
See example below -
PROGRAM main
include <windows.ins>
INTEGER iw,winio@
integer ctrl
integer :: parameter, width = 600, height = 600
iw=winio@('%ca[smooth lines]&')
c set up the surface to draw onto. Remove [smooth4] to see what anti-aliasing has given you
iw=winio@('%gr[smooth8]&', width, height)
call draw_line_between@(10,0,12,500,0)
iw=winio@(' ')
c***using %dw winstead
idc=get_bitmap_dc@(1000,800)
i=winio@('%dw %bt[ok]&',idc)
call set_smoothing_mode@(5)
call MoveToEx(idc,10, 0,iold)
call LineTo(idc,12,500 )
i=winio@(' ')
END PROGRAM main