newchannel
12 years agoRoku Guru
Centering the Bitmap for both for HD and SD?
I have a bitmap that is centered in HD mode but in SD mode the image is off to the bottom right corner. And, if I center the bitmap image for the SD mode, then it makes the HD bitmap image go to the upper right.
What parameter determines how to use a bitmap image from the package and have it centered for both HD and SD? The 0,0 for the x,y with canvas.drawobject right? But making the image centered for each HD and SD isn't working for me and not sure what to change.
What parameter determines how to use a bitmap image from the package and have it centered for both HD and SD? The 0,0 for the x,y with canvas.drawobject right? But making the image centered for each HD and SD isn't working for me and not sure what to change.
bmp=createobject("roBitmap","pkg:/images/xxxxx1280x720.png")
bmp.setAlphaEnable(true)
canvas.drawobject(0,0,bmp)
canvas.swapbuffers()