Thought I had seen a SuperEagle pixel art scaler on freebasic.net.
But can't find it.
So has anyone written a freebasic SuperEagle scaler?
Has anyone written a freebasic SuperEagle scaler?
-
- Site Admin
- Posts: 6323
- Joined: Jul 05, 2005 17:32
- Location: Manchester, Lancs
Re: Has anyone written a freebasic SuperEagle scaler?
http://games.freebasic.net/forum/index.php?topic=40.0 links to a zip file containing an hq2x library.
But it looks like the library itself has no source code available, and only works for 16-bit image buffers.
But it looks like the library itself has no source code available, and only works for 16-bit image buffers.
-
- Site Admin
- Posts: 6323
- Joined: Jul 05, 2005 17:32
- Location: Manchester, Lancs
Re: Has anyone written a freebasic SuperEagle scaler?
If you want a pure FB version, then you could translate https://github.com/grom358/hqx/blob/master/src/hq2x.c - the code looks long, but it looks easy to translate - I can't see anything that would be difficult to write in FB.
EDIT: in the other thread we learned that a 64MB RGBtoYUV table is needed in the original library, but that the table lookup could easily be replaced by a function. The code for that is in https://github.com/grom358/hqx/blob/master/src/init.c.
EDIT: in the other thread we learned that a 64MB RGBtoYUV table is needed in the original library, but that the table lookup could easily be replaced by a function. The code for that is in https://github.com/grom358/hqx/blob/master/src/init.c.
Re: Has anyone written a freebasic SuperEagle scaler?
Have already written code that links to libhqx dll.
Forum page on linking to libhqx.
I am trying to scale up fonts, and hq2x distorts the fonts, and makes the them too thick.
That is why I was asking about Super Eagle.
The other scalers that seem to do a good job on fonts are 2xsal, super 2xsai, and epxc.
Forum page on linking to libhqx.
I am trying to scale up fonts, and hq2x distorts the fonts, and makes the them too thick.
That is why I was asking about Super Eagle.
The other scalers that seem to do a good job on fonts are 2xsal, super 2xsai, and epxc.
Re: Has anyone written a freebasic SuperEagle scaler?
this scaling stuff is neat. i zoomed an image in FastStone image viewer w/ magnifying glass and thought "huh, that looks .. did i copy clipboard correctly?"
it almost looked like i had zoomed in using a telephoto lens. not sure what to think at this point but i am impressed
[edit] - maybe it's not that special. yeah i don't think it is. just a simple bi filter looks pretty darn good. still, i'm intrigued
[edit] - magnifier shape: round (default) looks better than bilinear
it almost looked like i had zoomed in using a telephoto lens. not sure what to think at this point but i am impressed
[edit] - maybe it's not that special. yeah i don't think it is. just a simple bi filter looks pretty darn good. still, i'm intrigued
[edit] - magnifier shape: round (default) looks better than bilinear