Jas6666 / grafx2

Automatically exported from code.google.com/p/grafx2
0 stars 0 forks source link

Scale2x/Scale3x scaler for resizing picture/brush. [as lua script?] #236

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
2xSaI is an algorithm to upscale a picture with some automated smoothing, 
but not too much. It works better for indexed images than usual algorithm. 
May be interesting.

Original link :

http://web.archive.org/web/20070107140022/http://elektron.its.tudelft.nl/
~dalikifa/

Original issue reported on code.google.com by pulkoma...@gmail.com on 2 Nov 2009 at 8:33

GoogleCodeExporter commented 8 years ago
Cleaner implementation in C

http://bob.allegronetwork.com/2xsai/2xsai.zip

Original comment by pulkoma...@gmail.com on 2 Nov 2009 at 8:40

GoogleCodeExporter commented 8 years ago
It produces a truecolor image. Also, it turns an image of size N into size 
(N*2)-1,
an odd number which is problematic for a lot of game graphics.

Original comment by yrizoud on 2 Nov 2009 at 10:15

GoogleCodeExporter commented 8 years ago
scale2x and scale3x are probably better, since they don't add colors,
and produce always an image of size N*factor (where factor is 2 or 3 
respectively).

It can also be applied iteratively
(scale2x + scale2x = scale4x. scale2x + scale3x = scale6x; scale3x + scale3x = 
scale9x). 

There is a widepixel-compatible algorithym (scale2x4) but not a tallpixel 
compatible
algorithym (scale4x2). 

It can use MMX (but I guess that probably doesn't matter for most Grafx2 
usages).

http://scale2x.sourceforge.net/

Original comment by 00a...@gmail.com on 3 Nov 2009 at 1:38

GoogleCodeExporter commented 8 years ago
Pulkomandy, now's time to prove the power of factory, by writing a lua program 
that
upscales the current brush using 2xSai algorithm :)

Original comment by yrizoud on 13 Nov 2009 at 2:32

GoogleCodeExporter commented 8 years ago

Original comment by pulkoma...@gmail.com on 15 Jan 2010 at 7:34

GoogleCodeExporter commented 8 years ago

Original comment by pulkoma...@gmail.com on 9 Aug 2010 at 9:43

GoogleCodeExporter commented 8 years ago

Original comment by pulkoma...@gmail.com on 20 Jan 2011 at 8:43