ImageShell -- RotScale Bug
Displaying 1-5 of 5 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
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

mcgrue

Could you package a stripped-down demo that illustrates this bug clearly, and upload it to the site?

Posted on 2005-06-14 01:21:21

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)

Jesse

I think I've found and squashed this bug -- good catch, Omni.

Posted on 2005-06-26 20:39:29

Omni

Excellent. I'd love a new release (even just for this alone) as soon as possible :)

Posted on 2005-06-27 11:36:52


Displaying 1-5 of 5 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.