Related Posts
[CODE/JAVA] ARGB_8888 Pixel Abstraction
This is one of the ways you can decode Pixel colors out of the integers you get from Android Pixels. ARGB_8888, stands for Alpha, Reg, Green, Blue. The 8’s stand for the number of bits per channel. In Android, signed int‘s are used to represent pixel’s alpha/color information. Since Android’s language of choice is java, […]
Venezolanos en el Google Code Jam 2007
Mis respetos y felicitaciones a los siguientes Venezolanos que ya pasaron la primera ronda del Google Code Jam 2007: De 250 competidores calificados, a continuacion los nicks de los Venezolanos y su posicion dentro del Ranking: Zaen (8) SuperRaskao (12) kiddi (40) PrOgRaMaKeR (67) hheras (77) Ghust_omega (110) Eduardofeo (131) LaguneXXX (133) X-KERNEL (246) Gracias […]
Java: How to create dynamic PNGs, JPGs, GIFs.
Sometimes you need to create graphics, or compose images and have them saved as regular PNGs, JPEGs or GIFs. Here’s a quick and dirty reference of how to do it with BufferedImages, Graphics2D and javax.imageio.*. Very straightforward. [java] import java.awt.Color; import java.awt.Graphics2D; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import javax.imageio.ImageIO; … //1. Create a BufferedImage, […]