-
JAVA图像压缩,头都大了的问题.
今天突然接到个任务,要弄图像压缩的,我自己的理解是,改变图像的尺寸大小,图像自然就变小了,其实不是,不改变图像尺寸大小,通过算法,直接改变影像所占控件的大小,TNND,不好弄呀,搞了半天也只会弄一个靠改变图像大小来改变图像本身的东西,先混混吧。通过算法改变图像的,以后再弄了,附上改变尺寸大小来压缩图像的程序,以后可以参考.注意呀:很郁闷的是,居然不能对TIFF文档操作,其他的都还可以的.
2009-09-03【[java]】
阅读更多 -
实现两个select同步
<html xmlns="http://www.w3.org/1999/xhtml" ><head><title>标题页</title></head>
2009-01-13【[Javascript]】
阅读更多 -
How to Set $JAVA_HOME environment variable on Mac OS X
In this tutorial, we show you how to set $JAVA_HOME environment variable on latest or older Mac OSX.
2019-08-18【[Java]】
阅读更多 -
Maven, JAVA_HOME is not defined correctly on Mac OSX
Apple recommends to set JAVA_HOME to “/usr/libexec/java_home“, for example :
2019-08-18【[Java]】
阅读更多 -
Java HttpURLConnection follow redirect example
The HttpURLConnection‘s follow redirect is just an indicator, in fact it won’t help you to do the “real” http redirection, you still need to handle it manually.
2019-08-18【[Java]】
阅读更多 -
Display a list of countries in Java
In this article, we show you how to use the Locale class to play around the list of countries.
2019-08-18【[Java]】
阅读更多 -
How to read and parse CSV file in Java
A Comma-Separated Values (CSV) file is just a normal plain-text file, store data in column by column, and split it by a separator (e.g normally it is a comma “,”).
2019-08-18【[Java]】
阅读更多 -
ASCII Art Java example
A funny Java example to create an ASCII art graphic. The concept is simple, get the image’s rgb color in “integer mode”, later, replace the color’s integer with ascii text.
2019-08-18【[Java]】
阅读更多 -
How to automate login a website Java example
In this example, we will show you how to login a website via standard Java HttpsURLConnection. This technique should be working in most of the login form.
2019-08-18【[Java]】
阅读更多 -
Apache HttpClient Examples
This article shows you how to use Apache HttpClient to send HTTP GET/POST request.
2019-08-18【[Java]】
阅读更多 -
How to send HTTP request GET/POST in Java
In this article, we will show you two examples to make HTTP GET/POST request via following APIs
2019-08-18【[Java]】
阅读更多 -
Reporting in Java using DynamicReports and JasperReports
This example shows how to generate a simple report using DynamicReports and JasperReports. DynamicReports is a Java reporting library that allows you to produce report documents that can be exported into many popular formats. It is based on the well-known JasperReports library.
2019-08-18【[Java]】
阅读更多 -
Java Whois example
In this tutorial, we will show you how to use Java library – “Apache Commons Net” to get WHOIS data of a domain.
2019-08-18【[Java]】
阅读更多 -
Convert String with commas to Long Java
A short guide to show you how to convert a String with commas to a long type.
2019-08-18【[Java]】
阅读更多 -
How to convert String to Date Java
In this tutorial, we will show you how to convert a String to java.util.Date. Many Java beginners are stuck in the Date conversion, hope this summary guide will helps you in some ways.
2019-08-18【[Java]】
阅读更多