11-15-2022, 07:19 PM
Trying to understand from the wiki about how _CopyImage somehow makes software images into hardware images if using mode 33.
Mode 32 is fine, but 33 doesn't seem to be doing anything.
Maybe a certain variable type will work? No idea
Quote:newhandle& = _COPYIMAGE(imageHandle&[, mode%])
Mode 32 is fine, but 33 doesn't seem to be doing anything.
Code: (Select All)
'mode 33 copyimage test
Screen _NewImage(800, 600, 32)
Dim h1&, h2&
h1& = _LoadImage("qb64pe.png", 32)
w1 = _Width(h1&): h1 = _Height(h1&)
_PutImage (1, 1)-(400, 300), h1&, 0, (1, 1)-(w1, h1)
h2& = _CopyImage(0, 32) '<------ works in mode 32 but blank if mode 33
Sleep
Cls
_PutImage (1, 1), h2&
Sleep
End
Maybe a certain variable type will work? No idea