Omni
|
When using RotScale upon an ImageShell, the image is read incorrectly unless the ImageShell's width is equal to the width of the original image.
ex,
40x52 image
ImageShell(0, 0, 20, 20); -- looks funky
ImageShell(0, 0, 40, 20); -- looks fine
The problem with using the first ImageShell above in conjuction with RotScale seems to be that it is read without linescrolling...if that makes sense. I mean to say, it is as if, ImageShell fails to read only 20 pixels and then skip to the next line. Instead it reads pixels until the end of each line.
The result would be a rotated rectangle, where, in reality, all 40 horizontal pixels would be shown from the first 20 lines of the image, except wrapped by 20 pixels. That is, every row is 20 pixels, but two rows are displayed (for two rows * 20 pixels = 40 pixels). Thus the resulting image is in reality 20x40 even though only 20 vertical lines of the image are read, and the distortion just looks funky.
Posted on 2005-06-13 23:38:13
|
Omni
|
Right.
Here we go.
http://www.verge-rpg.com/files/detail.php?id=608
Um...I realized after uploading it that I actually forgot to put the Verge3.exe in (I test using shortcuts from Textpad, not a V3.exe in the actual current working directory). It's not really worth uploading twice (the parent ID still isn't set), so just drop in an executable. The source is super simple, of course.
EDIT: er, I also got the comments for the correct blit and the incorrect blit messed up. But it's still pretty easy to tell what's going on.
Posted on 2005-06-14 17:56:59 (last edited on 2005-06-14 17:58:24)
|