For the following code I am seeing two problems. The first is that all images are off 18pixels higher than they should be and 32 pixels to the left of where expected. In addition large images (greater than 1000 width) are clipped right around the ~1050 pixel area (pixel cutoff width on screen not of image). Weird thing is when I place multiple images only larger images are clipped past the 1050 pixel region. If I have a image that is around 200Wx150H I can place these anywhere within the view without clipping. However all images are subject to the strange 18w32h pixel offset. I get the problem even running the following modified from the rocompositor example code.
Function main()
black=&hFF'RGBA
screen=CreateObject("roScreen")
compositor=CreateObject("roCompositor")
compositor.SetDrawTo(screen, black)
bigbm=CreateObject("roBitmap","pkg:/images/image_old_hd.png") 'Image is 1000wx350H
region=CreateObject("roRegion", bigbm, 0, 0, 850, 720)
view_sprite=compositor.NewSprite(200, 200, region)
compositor.draw()
msgport = CreateObject("roMessagePort")
screen.SetMessagePort(msgport)
codes = bslUniversalControlEventCodes()
While True
msg=wait(0, msgport) ' wait for a button
If type(msg)="roUniversalControlEvent" Then
If msg.GetInt() = codes.BUTTON_BACK_PRESSED ' back button
Exit While
End If
End If
End While
End Function