Vector output accuracy when rotating

Post bugreports for the Windows version here
wilbert
PureBasic Expert
PureBasic Expert
Posts: 3942
Joined: Sun Aug 08, 2004 5:21 am
Location: Netherlands

Vector output accuracy when rotating

Post 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
Windows (x64)
Raspberry Pi OS (Arm64)
Joris
Addict
Addict
Posts: 890
Joined: Fri Oct 16, 2009 10:12 am
Location: BE

Re: Vector output accuracy when rotating

Post 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).
Yeah I know, but keep in mind ... Leonardo da Vinci was also an autodidact.
Post Reply