Resetting initial image size
-
I use
border = createimage()
for the border in my Tate template, and I was wondering if its possible to resize the initial width and height value? Not scale, but resize.
The idea I had was to do:if docked != lastdocked then Border = 0 Border = createimage(special math stuff for width and height) Endif
I feel like that wouldn't work though. Any ideas?
-
Given docked vs undocked only ever involves two resolutions, wouldn't it be just as easy to create two images up front and just use whichever you need depending on docked state?
-
I don't think you can create images that are larger than the screen resolution?
Wouldn't freeImage work for this?
int lastDocked = docked() var border = createImage(gWidth(), gHeight(), false, image_rgba) loop clear() // things if docked() != lastdocked then freeImage(border) border = createImage(gWidth(), gHeight(), false, image_rgba) endif // other stuff update() repeat
-
I don't see why that wouldn't work.
I'd need to run my tests again when I'm not working - there was a bug related to image creation that I reported when we were first looking into the idea of screen rotation but I reported that and it was fixed in a previous update. I don't remember what the screen size limits are but I was told. I won't repeat until I've tested what you can and can't do.
-
@PB____ I think that'll work, I thought that was a function but I couldn't remember it. Also yea, but I'm looking to create images that are smaller than the screen and then scaled up.
@Martin Sure you could create two images, however I'm making this as part of the template to fix an issue with it, and I'd like to let people only have to draw one image