php
[php] imagelibrary
Нуеоп
2012. 11. 9. 12:26
파일로 부터 png 이미지 객체를 생성
imagecreatefrompng( image_name );
빈 이미지 객체 생성
imagecreatetruecolor( w, h );
src 이미지 객체의 일부를 dst 이미지 객체로 덮어씌움
imagecopyresampled( dst, src, dst_x, dst_y, src_x, src_y, dst_w, dst_h, src_w, src_h );
dst 크기 만큼의 색 객체 생성
imagecolorallocate( dst, r, g, b );
??
imagefill( dst, x, y, color);
imagecopy( dst, src, dst_x, dst_y, src_x, src_y, w, h );
ImageTTFText( dst, fontsize, angle, x, y, color, fontname, text );
imagepng( dst, image_name );
imagedestroy( image );
width, height, type, attr 값 한번에 리턴, type는 숫자
getimagesize( filename );
getimagesize 함수만 봐도 php가 제정신으로 만든게 아니라는걸 알 수 있다.