pbimage
1.0.0
이미지 유형 변환, 스케일링, 파워 빌더 수정
추가 정보 : PBNI-RS
cargo build --release
# Copy target i 686 -pc-windows-msvc r elease p bimage . dll file to the pb project directoryBMP, JPEG, GIF, PNG, ICO, TIFF, WEBP
nrs_tp_image nimage
nimage = create nrs_tp_image
if nimage.open( "pic.jpg" ) then
//Convert jpg images to png format,save to file ;
nimage.save( "pic.png" )
end if blob bimg
nrs_tp_image nimage
nimage = create nrs_tp_image
if nimage.open( "pic.jpg" ) then
//Convert jpg images to png format,data to blob ;
bimg = nimage.as_bytes( enum .IMAGEFORMAT_PNG))
end if nrs_tp_image nimage
nimage = create nrs_tp_image
if nimage.open( "pic.jpg" ) then
//Generate 200 * 200 thumbnail and convert to png
nimage.thumbnail( 200 , 200 ).save( "pic.png" )
end if nrs_tp_image nimage
nimage = create nrs_tp_image
if nimage.open( "pic.jpg" ) then
//Resize to 200 * 200 with FILTERTYPE_NEAREST and convert to png
nimage.resize( 200 , 200 , enum .FILTERTYPE_NEAREST).save( "pic.png" )
end if| 기능 이름 | 설명 |
|---|---|
| 공개 기능 Ulong Height () | 키 |
| 공개 기능 ulong 너비 () | 너비 |
| 공개 기능 NRS_TP_IMAGE GRAYSCALE () | 그레이 스케일 |
| 공개 서브 루틴 인버트 () | 거꾸로 하다 |
| 공개 기능 NRS_TP_IMAGE BLUR (Readonly Real Sigma) | 흐림 |
| 공개 기능 NRS_TP_IMAGE UNSHARPEN (Readonly Real Sigma, Readonly Long 임계 값) | UNSHARPEN |
| 공개 기능 NRS_TP_IMAGE ADCTION_CONTRAST (Readonly Real C) | 조정 _contrast |
| 공개 기능 nrs_tp_image brighten (readonly long v) | 닦다 |
| 공개 기능 NRS_TP_IMAGE HUEROTATE (Readonly Long V) | huerotate |
| 공개 기능 nrs_tp_image flipv () | flipv |
| 공개 기능 nrs_tp_image fliph () | 플리프 |
| 공개 기능 NRS_TP_IMAGE ROTATE90 () | 회전 90 |
| 공개 기능 NRS_TP_IMAGE ROTATE180 () | 회전 180 |
| 공개 기능 NRS_TP_IMAGE ROTATE270 () | 회전 270 |
nrs_tp_image nimage
nimage = create nrs_tp_image
if nimage.open( "pic.jpg" ) then
//Chaining Style
nimage.thumbnail( 200 , 200 ).grayscale().blur( 2 . 0 ).flipv().save( "pic.png" )
end if public function nrs_tp_image resize( readonly ulong nwidth, readonly ulong nheight, readonly uint filtertype)
public function nrs_tp_image resize_exact( readonly ulong nwidth, readonly ulong nheight, readonly uint filtertype)
public function nrs_tp_image resize_to_fill( readonly ulong nwidth, readonly ulong nheight, readonly uint filtertype)
public function nrs_tp_image thumbnail( readonly ulong nwidth, readonly ulong nheight)
public function nrs_tp_image thumbnail_exact( readonly ulong nwidth, readonly ulong nheight)
public function uint color()