Page 1 of 1

Vector output accuracy when rotating

Posted: Tue Mar 08, 2016 8:27 am
by wilbert
On my Windows 10, there's a small white line at the top between the image and the edge of the canvas.
On OSX and Linux this doesn't happen.

Code: Select all

CreateImage(0, 180, 180, 24, $8000)

If OpenWindow(0, 0, 0, 400, 200, "VectorDrawing", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
    SetWindowColor(0, 0)
    CanvasGadget(0, 10, 10, 380, 180)    
    
    If StartVectorDrawing(CanvasVectorOutput(0))
      
      TranslateCoordinates(190, 90); translate to mid of canvas
      RotateCoordinates(0, 0, 270); rotate
      
      MovePathCursor(-90, -90)
      DrawVectorImage(ImageID(0))
    
      StopVectorDrawing()
    EndIf
    
    Repeat
      Event = WaitWindowEvent()
    Until Event = #PB_Event_CloseWindow
  EndIf

Re: Vector output accuracy when rotating

Posted: Tue Mar 08, 2016 10:32 am
by Joris
wilbert wrote:On my Windows 10, there's a small white line at the top between the image and the edge of the canvas.
Got it also here (XP).