DrawArea or GrabImage?

Monkey Forums/Monkey Programming/DrawArea or GrabImage?

Wagenheimer(Posted 2011) [#1]
I'm still having problems with Tiled Images, with some visual glitch on some devices.

I have found that this was fixed using GrabImage, is this true?

I'm not using GrabImage, I'm using DrawImageRect to get Patterns from a big Image.

Does GrabImage create a new image or only create a reference to it? I'm not using DrawImageRect because I'm afraid of using additional memory.


dopeyrulz(Posted 2011) [#2]
Wagenheimer,

Are you getting artifacts on each tile when it draws? If so I had the same problem with scaling.


Wagenheimer(Posted 2011) [#3]
Yes!!! There is an strange line artifact between tiles!

Here exists a suggestion to fix, http://www.monkeycoder.co.nz/Community/posts.php?topic=231#2401 but I could not make it works yet.


dopeyrulz(Posted 2011) [#4]
Yeah - I had a bit of a look at the padding - didn't seem to make any difference.

http://www.monkeycoder.co.nz/Community/posts.php?topic=687#5426

Didn't receive any suggestions about it.


jjsonick(Posted 2011) [#5]
Should this be logged as a bug?


skid(Posted 2011) [#6]

Should this be logged as a bug?



No those using cellsheets need to adjust the tools they are using to create the required padding as it is not feasible to consider this operation be done at runtime by mojo itself.

You have to pad tiled images on cell sheets to have them work correctly (the padding goes outside the GrabImage rectangle and should be equal in color to the nearest pixel that is in the GrabImage rectangle. Those using scaling or rotation should possibly use more than a single pixel of padding.