Stretched image - How do I get around this problem?
Posted: Sat Aug 14, 2004 4:55 pm
I want to draw a stretched image into a window or image gadget.
I'm using DrawImages extra NeWidth/NeHeight parameters but I'm getting an anti-alias type of effect appearing in the image:

The circle needs to show without the anti-alias effect.
Code example for above:
Any other commands/flags I might have missed?
I'm using DrawImages extra NeWidth/NeHeight parameters but I'm getting an anti-alias type of effect appearing in the image:

The circle needs to show without the anti-alias effect.
Code example for above:
Code: Select all
ball.l=CreateImage(#pb_any,16,16)
UseImage(ball)
StartDrawing(ImageOutput())
Box(0,0,26,26,RGB(255,255,255))
DrawingMode(4)
Circle(8,8,7,RGB(20,10,95))
StopDrawing()
#wflags=#PB_Window_SystemMenu |#PB_Window_TitleBar
OpenWindow(0,50,160,280,300,#wflags,"Stretched image")
StartDrawing(WindowOutput())
DrawImage(UseImage(ball),10,10 , 250,250)
StopDrawing()
Repeat
ev=WaitWindowEvent()
Until ev=#PB_EventCloseWindow
End