|
Post by RedAngel on Jan 27, 2005 18:40:56 GMT -5
Hello Devster, I would like an option in Imagenesis to choose which colour of the image has to be transparent and a way of copying the values of the pallette to the BasiEgaXorz.
|
|
oompa loompa
I AM THE GOVERNATOR
"Git 'Er Dun!"
Posts: 1,301
|
Post by oompa loompa on Jan 27, 2005 21:04:35 GMT -5
okay, i've added in transparancy selection to the gui, but i haven't added any copy/paste buttons yet.
for a temporary fix, the very top left pixel (0,0) will end up being your transparant color, that will be used for all other pixels of the same color. to copy the pallette into basiegaxorz, you can try the shortcut CTRL+C and that will copy the text to the clipboard
|
|
|
Post by Tom Maneiro on Jan 29, 2005 8:37:57 GMT -5
It sometimes fail, for example, i set the first pixel of another color, and another color gets lost. This can ocurr if the colors are very near in the RGB scale. An option would be that Imagenesis set this first pixel to transparent, changing the color, ignoring the color of the near pixels, specially for rectangle/squared pics. I suggest two levels of transparency: -set the transparency to a color in the image (like a green layer) -no transparency at all? (is it possible)?
|
|
oompa loompa
I AM THE GOVERNATOR
"Git 'Er Dun!"
Posts: 1,301
|
Post by oompa loompa on Jan 29, 2005 12:43:12 GMT -5
in the new imagenesis, i already put 7 modes were you can convert an image (3 are for 32x). the first two convert to 15 colors (no transparency, transparency will no longer be regarded as a color), the other two are optimized modes. you can always set another option to enable transparency, if you have color entry 0 as the border color set. you may also choose any color for transparancy.
the method used to convert images is an octree, which is why pixels of similiar pgb values get stuck into one rgb value (sometimes you're convering jpeg images containing many dirrerent unique colors into 16 unique colors). you could always draw your own images in paint, and restrict yourself to, at the most, 16 colors
|
|
|
Post by RedAngel on Jan 29, 2005 20:02:11 GMT -5
The new version of Imagenesis is going to be great .
|
|
|
Post by Tulio Adriano on Feb 3, 2005 9:44:59 GMT -5
Well... err...
Now that we are going to have option explicit there is another small thing about variable declarations.
Now they are case sentivie, but it would be nice to have an option that make them case insensitive since basic works that way.
On a second time, something I miss on BEX is the SELECT CASE (not for font case, duuuh).
Select Case Var Case 1 ... Case 2 ... Case Else
End Select
That would be really nice.
EDIT: I almost forgot this, an option to let TAB insert 4 spaces instead of a TAB character.
Thank you.
|
|
oompa loompa
I AM THE GOVERNATOR
"Git 'Er Dun!"
Posts: 1,301
|
Post by oompa loompa on Feb 3, 2005 19:08:20 GMT -5
okay, done with select cases =D i've also implemented do and loop, so you're not stuck with the simple while....wend. btw, for select cases, i had to make it all table based for the maximum speed, so that means if you want to check between two numbers, specifically for this example: 1 and 2047, the table and your code is now going to be 4094 bytes x.x
how is this speedy? if you have 4000 values you're checking (like emulating a cpu core), and you need it done very fast, you store all your routine calls in a table, and them jump to them depending on the number contained. if you like the slow method, your 4000 checks will take 4000 instructions to execute =P, so some cases: if....endif is good, others: select case is awesome.
i think there's another way select case can be implemented, but using a table is the fastest. old versions of basic use an on statement, and then jump to your routine for every unit of 1
|
|
|
Post by Tom Maneiro on Feb 3, 2005 22:15:55 GMT -5
the method used to convert images is an octree, which is why pixels of similiar pgb values get stuck into one rgb value (sometimes you're convering jpeg images containing many dirrerent unique colors into 16 unique colors). you could always draw your own images in paint, and restrict yourself to, at the most, 16 colors You should try to implement Median Cut conversion, instead of octree, and also add error difusion. Just check out this test picture, and, tell me what looks more like the original.
|
|
oompa loompa
I AM THE GOVERNATOR
"Git 'Er Dun!"
Posts: 1,301
|
Post by oompa loompa on Feb 4, 2005 2:21:26 GMT -5
uhm, i think i'll keep the octree algorithm. going to others like median cut, plus error diffusion only offers a little more quality than the octree. you could always reduce the number of colors with paint shop pro, and then convert it with imagenesis, and your image will stay the same
|
|
|
Post by Tom Maneiro on Feb 4, 2005 9:33:28 GMT -5
I am thinking in another crazy idea: write a plugin for PSP/Photoshop for export pictures to Genesis format... but this sounds a bit hard. Fortunately Photoshop plugins are compatible with PSP.
|
|
oompa loompa
I AM THE GOVERNATOR
"Git 'Er Dun!"
Posts: 1,301
|
Post by oompa loompa on Feb 4, 2005 12:59:52 GMT -5
my psp 7 doesn't let me import plug-ins =(
|
|
|
Post by Tom Maneiro on Feb 4, 2005 20:25:04 GMT -5
? I have PSP 7 and Photoshop 5.5, and PSP can load my Photoshop plugins. Simply go to File>Preferences>File Locations>Plug-In Filters, then you can set up to 3 plugin folders.
|
|
oompa loompa
I AM THE GOVERNATOR
"Git 'Er Dun!"
Posts: 1,301
|
Post by oompa loompa on Feb 4, 2005 21:37:21 GMT -5
=o, oooooooooooooooooh, okay, so it was in "file locations" all this time x.x, that's like the last place i'd look
|
|
|
Post by haroldoop on Feb 5, 2005 14:40:38 GMT -5
Well, you could store the table as value/address pairs, and then execute a binary search. The compiler could even optimize this, choosing between binary searches or direct table lookups, depending on which would take up less ROM space depending on the case.
|
|
oompa loompa
I AM THE GOVERNATOR
"Git 'Er Dun!"
Posts: 1,301
|
Post by oompa loompa on Feb 8, 2005 20:36:39 GMT -5
yes, binary searches were my second choice. i dunno if i'll add this now, i mean, i have to leave some room for future updates =D j/k
|
|