Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
EZ Image Rotator

 
Post new topic   Reply to topic Printable version
 View previous topic  PALM os lvl editor? Post :: Post PHP: LVL to PNG/JPG  View next topic  
Author Message
Bak
?ls -s
0 in


Age:24
Gender:Gender:Male
Joined: Jun 11 2004
Posts: 1826
Location: USA
Offline

PostPosted: Tue Jul 13, 2004 9:42 am    Post subject: EZ Image Rotator Reply to topic Reply with quote



Who Made It: Me, Bak
How To Contact Maker: post here or email, vamperz@yahoo.com
Stage: Release
Programming Language: Java
Source Included: Yes
Requirements: Java JRE, downloadable at java.sun.com

What does it do: Will rotate any image evenly among the number of rows and columns you want. Ideal for ships in subspace but will work with any image. Uses 4x Anti-aliasing!

How to use it: Double click the .jar (java archive) file to run it. It'll open with a default image. You can click open and select your own image and it'll rotate it. Also you can chose the # of rows and # of colums and press refresh to redraw it.

Issues:

-If loading your bitmap doesn't work (it's not a 256 color or 24 bit bitmap) , try converting it to a .png before you load it.

--------------------------------------
UPDATE: 10-20-04 (1.3)

For the background color, the program will now grab the top left pixel of the image and assumes that's the background color. it's going to get cut off anyways, and that's rarely the intention so in my opinion, it's a good assumption. This will allow effortless use of different background colors.

I made an honest effort at antialiasing. Java's support of antialiasing is limited to their drawing calls (like if i wanted to draw a line it could do it antialiased). So rotating images doesn't seem to do it. If anyone wants to find me some java code that can anti alias an image i'll happily add it.

I could use JAI to save the bitmaps and it would compress them, but I'd probably have to distribute the jar's for JAI (~800k) so that's probably not gonna happen.
------------------------------
UPDATE 10-21-04 (1.4)

I thought of a way I could do antialiasing! What I do is I double the image size, and paint a scaled copy of the original image onto it. Then I rotate that one. Then I take the average red green and blue values for the first 2x2 of pixels and make that the color of pixel (0,0) in my rotated image. This means that a pixel can be black, 1/4 gray, 1/2 gray, 3/4 gray, or white. Naterally I expanded it to do 4x the image size (16 shades of gray) to 8x the image size (64 shades of gray). I zoomed in in paint and the difference between 4x and 8x is unnoticable when zoomed in at 8x. So I settled with 4x the image size (there was a noticeable increase in speed by using 4x over 8x). Since there is a noticeable delay while rotating I added a progress bar to entertain you.

Also fixed a small bug with picking the background color and loading different images with different background colors (it works correctly now).
------------------------------
UPDATE 6-1-05 (1.5)

Saving as an uncompressed 24 bit btimap had been removed and replaced by saving as a PNG! Now you truely have no reason not to use this program.

Also, rotating is done in a seperate thread so you don't have to wait for the load image to finish rotating to start using the program.




Source included; 4x anti-aliasing

EZ Image Rotator 1.51.zip - 29.03 KB
File downloaded or viewed 717 time(s)


Last edited by Bak on Sat Jun 03, 2006 9:01 pm, edited 11 times in total
Back to top
View users profile Send private message Add User to Ignore List AIM Address
Smong
Server Help Squatter


Joined: 1043048991
Posts: 0x91E
Offline

PostPosted: Wed Oct 20, 2004 4:19 pm    Post subject: Reply to topic Reply with quote

I just tried this and it is very nice. It doesn't have anti-alias though (I used a big image and I'm going to down size in another program that has anti-alias).

One suggestion is to add a dropper tool to choose the background colour (I'm using this program for something other than ss and it has a different colour for transparency).
Back to top
View users profile Send private message Add User to Ignore List Visit posters website MSN Messenger
SuSE
Me measures good


Joined: Dec 02 2002
Posts: 2307
Offline

PostPosted: Wed Oct 20, 2004 9:38 pm    Post subject: Reply to topic Reply with quote

Smong wrote:
something other than ss

what?
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website
Bak
?ls -s
0 in


Age:24
Gender:Gender:Male
Joined: Jun 11 2004
Posts: 1826
Location: USA
Offline

PostPosted: Thu Oct 21, 2004 4:11 am    Post subject: Reply to topic Reply with quote

added effortless support for multiple background colors.
Back to top
View users profile Send private message Add User to Ignore List AIM Address
Purge
Episode I > Eposide III
Jar-Jar is kool


Age:34
Gender:Gender:Male
Joined: Sep 08 2004
Posts: 2018
Offline

PostPosted: Thu Oct 21, 2004 3:54 pm    Post subject: Reply to topic Reply with quote

nice prog tongue.gif
Back to top
View users profile Send private message Add User to Ignore List
Bak
?ls -s
0 in


Age:24
Gender:Gender:Male
Joined: Jun 11 2004
Posts: 1826
Location: USA
Offline

PostPosted: Thu Oct 21, 2004 8:54 pm    Post subject: Reply to topic Reply with quote

added anti-aliasing. The difference is amazing! just look:






zoomed in looks even more impressive:





zoomedIn.PNG - 34.49 KB
File downloaded or viewed 83 time(s)

antialiased.PNG - 33.26 KB
File downloaded or viewed 69 time(s)

aliased.PNG - 18.05 KB
File downloaded or viewed 71 time(s)
Back to top
View users profile Send private message Add User to Ignore List AIM Address
Solo Ace
Yeah, I'm in touch with reality...we correspond from time to time.


Age:36
Gender:Gender:Male
Joined: Feb 06 2004
Posts: 2583
Location: The Netherlands
Offline

PostPosted: Thu Oct 21, 2004 9:24 pm    Post subject: Reply to topic Reply with quote

Rofl, that face looks great. sa_tongue.gif
Back to top
View users profile Send private message Add User to Ignore List
SuSE
Me measures good


Joined: Dec 02 2002
Posts: 2307
Offline

PostPosted: Fri Oct 22, 2004 2:22 am    Post subject: Reply to topic Reply with quote

I'm gonna make a whole zone using that ship
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website
Purge
Episode I > Eposide III
Jar-Jar is kool


Age:34
Gender:Gender:Male
Joined: Sep 08 2004
Posts: 2018
Offline

PostPosted: Fri Oct 22, 2004 3:29 pm    Post subject: Reply to topic Reply with quote

Man, that'll be the best zone ever.... I wish I had good ideas as Suse does. :/
Back to top
View users profile Send private message Add User to Ignore List
SuSE
Me measures good


Joined: Dec 02 2002
Posts: 2307
Offline

PostPosted: Fri Oct 22, 2004 7:00 pm    Post subject: Reply to topic Reply with quote

keep dreamin', junya! sa_tongue.gif
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website
Guest



Offline

PostPosted: Wed Dec 22, 2004 2:42 pm    Post subject: Reply to topic Reply with quote

omg new_evil.gif u lil :twisted:erd icon_eek.gif biggrin.gif new_evil.gif Bommb
Back to top
Purge
Episode I > Eposide III
Jar-Jar is kool


Age:34
Gender:Gender:Male
Joined: Sep 08 2004
Posts: 2018
Offline

PostPosted: Wed Dec 22, 2004 3:17 pm    Post subject: Reply to topic Reply with quote

Bumpage owns! biggrin.gif
Back to top
View users profile Send private message Add User to Ignore List
D1st0rt
Miss Directed Wannabe


Age:36
Gender:Gender:Male
Joined: Aug 31 2003
Posts: 2247
Location: Blacksburg, VA
Offline

PostPosted: Wed Dec 22, 2004 7:27 pm    Post subject: Reply to topic Reply with quote

who dat wuz?
_________________

Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Purge
Episode I > Eposide III
Jar-Jar is kool


Age:34
Gender:Gender:Male
Joined: Sep 08 2004
Posts: 2018
Offline

PostPosted: Wed Dec 22, 2004 9:07 pm    Post subject: Reply to topic Reply with quote

D1st0rt wrote:
who dat wuz?


Huh? Do you mean "who was that?". Well it wasn't me. icon_eek.gif
Back to top
View users profile Send private message Add User to Ignore List
Bak
?ls -s
0 in


Age:24
Gender:Gender:Male
Joined: Jun 11 2004
Posts: 1826
Location: USA
Offline

PostPosted: Wed Jun 01, 2005 1:29 am    Post subject: Reply to topic Reply with quote

Thanks to a program by Smong, I've been able to modify this to save as a PNG instead of an uncompressed 24-bit bmp. You really have no reason to use any other rotator.
_________________
SubSpace Discretion: A Third Generation SubSpace Client
Back to top
View users profile Send private message Add User to Ignore List AIM Address
Smong
Server Help Squatter


Joined: 1043048991
Posts: 0x91E
Offline

PostPosted: Wed Jun 01, 2005 5:11 am    Post subject: Reply to topic Reply with quote

Does it still rotate that test image when you run start the program? That is a bit annyoing as you have to wait for it to finish processing.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website MSN Messenger
Bak
?ls -s
0 in


Age:24
Gender:Gender:Male
Joined: Jun 11 2004
Posts: 1826
Location: USA
Offline

PostPosted: Wed Jun 01, 2005 10:37 am    Post subject: Reply to topic Reply with quote

Okay, rotating is now done is a seperate thread, so you can open your image before the load image is done rotating.
Back to top
View users profile Send private message Add User to Ignore List AIM Address
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> Misc User Apps All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 646 page(s) served in previous 5 minutes.

phpBB Created this page in 0.442180 seconds : 44 queries executed (92.0%): GZIP compression disabled