이미지 (1) 썸네일형 리스트형 자바 썸네일 이미지 생성 (Thumbnail Image) 자바로 썸네일(thumbnail) 이미지를 만들어볼거에요. 원본 비율 유지 String oPath = "C:/Temp/40f0594a-b3f6-4c0f-a0b2-3cebbaf0d74e.jpg"; // 원본 경로 File oFile = new File(oPath); int index = oPath.lastIndexOf("."); String ext = oPath.substring(index + 1); // 파일 확장자 String tPath = oFile.getParent() + File.separator + "t-" + oFile.getName(); // 썸네일저장 경로 File tFile = new File(tPath); double ratio = 2; // 이미지 축소 비율 try { Buffered.. 이전 1 다음