convert images using java imageIO
Hi all,
I learned how to use java ImageIO to convert images formats. It makes me happy, so I wanted to share my experience with all of you.
As NetBeans told me, ImageIO is a class containing static convenience methods for locating ImageReaders and ImageWriters, and performing simple encoding and decoding. ImageIO supports most common formats such as jpg, gif, png and bmp.
The logic of image convertor is not that hard. It is as simple as this:
- Get an image file
- Feed it to the imageReader
- imageReader will return a BufferedImage
- Feed the BufferedImage to the image writer, with name of target format.
You can download a copy of the project from here: imageIO
All the best
Web page invoker using java
March 11, 2010 - 5:48 pm
Tags: code, Connection, folder, invoker, java, page, url, URLConnection, Web
Posted in Programming, Software | No comments
Hi,
as a programmer there are a lot of problems to face. Fortunately, solutions exist no matter how big is the problem. In my case efficiency is not that big deal, so please ignore the algorithms complexity and other geekly stuff
The problem that made me write this article is:
We have a folder (A) [...]
Binary, Octal, Decimal and Hexadecimal converter(Java)
February 22, 2010 - 12:17 am
Tags: binary, converter, Decimal, from, Hexadecimal, java, Octal, to
Posted in Programming | No comments
I was working on a simple project that simulate CPU registers, where users can use an assembly-like commands to issue some process while watching changes on the virtual CPU registers.
you may visit it using this link: http://www.doitmyway.net/2010/02/21/cpu-registers-simulator-educational-project/
In fact CPU data are in binary, although users may want to read those data in different format. So [...]
CPU registers simulator (educational project)
February 21, 2010 - 11:34 pm
Tags: assembly, Computer organization, CPU, debugger, educational, java, project, registers, simulator
Posted in Software | 2 comments
Computer organization and assembly course was one of the best courses I took. As a computer scientist it opens the world of imagination in my mind so I started to see bits dancing in front of my eyes
3 years passed since that day, I still can remember how our doctor was explaining the [...]
write text on image using php
August 10, 2009 - 3:54 am
Tags: image, imagettftext, on, php, text, using, write
Posted in Web Development | 1 comment
hello,
this is a simple method to write text on image using php. in fact, my friends asked me to create a php page that will take a specific information about their website visitors and return an image of a certificate with the visitor information written on it.
the logic of the program has three steps:
read input [...]
Ever Needed to find similler pictures ?!
July 24, 2009 - 2:14 pm
Tags: ever, find, free, image, needed, online, picture, similler
Posted in Miscellaneous | No comments
I think it is common problem that sometimes you have a picture but it is low quality and you start searching for higher quality pictures on the net (isn’t hard !!)
isnt easier if you can just upload your picture to a search engine and let the search engine do the hard work of finding similler [...]
my batch Image Converter using java imageIO
July 10, 2009 - 1:41 am
Tags: batch, bic, convert, Convertor, format, free, gif, image, imageIO, jar, java, java.code, jpg, lib, library, logic, my, png, simple, source, src
Posted in Software | No comments
digg_url = ‘http://www.doitmyway.net/2009/07/10/my-batch-image-convertor-using-java-imageio/’;
digg_title = ‘my batch Image Converter using java imageIO’;
digg_bodytext = ‘how many times you wanted to convert a batch of images from jpg/gif/png/ico to jpg/gif/png/ico?\n\nthis happens to me very rarely, still i want to solve this problem my way.\n\nOnce i was surfing the net and i found a software called "batch image converter". [...]
add jFileChooserFilter to your java code
June 21, 2009 - 6:22 pm
Tags: add, applications, Chooser, code, Extension, file, Filter, friendly, java, jFile, name, to, user, user friendly applications, your
Posted in Programming | 1 comment
digg_url = ‘http://www.doitmyway.net/2009/06/21/add-jfilechooserfilter-to-your-java-code/’;
digg_title = ‘add jFileChooserFilter to your java code’;
digg_bodytext = ‘Hi,\n\nToday I am going to show the way to use JFileChooser with FileNameExtensionFilter. This is very useful for building user friendly applications. FileNameExtensionFilter is used to tell which files extentions are allowed for the jFileChooser. This will make files with specific extensions appear and [...]
Scan your system using external anti-virus
June 14, 2009 - 2:18 am
Tags: anti, anti-virus, antivirus, bootable, external, operating system, Scan, system, using, virus, you use tools, your
Posted in Computer, Security, Software | 1 comment
Hi,
Is your computer is full with viruses, and your anti-virus is just watching them playing around?
If so, you may consider changing it and use a better one.
The problem is when you cannot do such a thing since viruses are controlling your system. I believe you do not want to lose your data, so you [...]
java imageBox (0.0.6)
May 28, 2009 - 6:48 pm
Tags: 0.0.6, box, image, imagebox, java, paint
Posted in Computer, Programming | 5 comments
digg_url = ‘http://www.doitmyway.net/2009/05/28/java-imagebox-006/’;
digg_title = ‘java imageBox (0.0.6)’;
digg_bodytext = ‘hi all,\n\nthis is the new virsion of java imageBox. it is numbered as 0.0.6. \n\ncompared to older versions, this one has more flexiblity. add to that, it supports design time image rendering. \n\nyou can download it from this link: imagebox(0.0.6)\n\nhere are the steps to add imageBox to [...]
playing music using java audioClip
May 20, 2009 - 4:47 pm
Tags: aif, api, audio, audioClip, Clip, java, music, playing, simple audio player, sound, using, wav
Posted in Computer, Programming | 6 comments
Hi all,
I was thinking of a way to play audio in java. I am using NetBeans, so it did not take me more than five (Ctrl-Space) until I figured out the way.
Today we will discuss creating of simple audio player which can play a (WAV) file.
There are many ways to play audio in java. The [...]

June 16, 2009 - 6:21 am
How soon will you update your blog? I’m interested in reading some more information on this issue.