joetesta
10 years agoRoku Guru
why is my roRegion invalid?
Hello -
Sorry if this is a dumb question, it's late and think I'm going nuts trying to understand why this won't work; I've got what seems to be a bitmap and 4 integers but it keeps telling me it's invalid....?
And here's the output I'm getting:
Wish I could understand what I'm doing wrong, thanks for any help,
Joe
Sorry if this is a dumb question, it's late and think I'm going nuts trying to understand why this won't work; I've got what seems to be a bitmap and 4 integers but it keeps telling me it's invalid....?
myRegion = CreateObject("roRegion", bitmap, sprite.Getx(), sprite.GetY(), bitmap.ifDraw2D.GetWidth(), bitmap.ifDraw2D.GetHeight())
printAA(myRegion)
printAA(bitmap)
print "here " sprite.Getx().ToStr(), sprite.GetY().ToStr(), bitmap.ifDraw2D.GetWidth().ToStr(), bitmap.ifDraw2D.GetHeight().ToStr()
And here's the output I'm getting:
invalid
roBitmap
here 1397 440 137 205
Wish I could understand what I'm doing wrong, thanks for any help,
Joe