pbimage
1.0.0
การแปลงประเภทภาพการปรับขนาดการปรับเปลี่ยนใน PowerBuilder
ข้อมูลเพิ่มเติม: 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 () | ความสูง |
| ฟังก์ชั่นสาธารณะความกว้างของ Ulong () | ความกว้าง |
| ฟังก์ชั่นสาธารณะ nrs_tp_image grayscale () | สีเทา |
| รูทีนย่อยสาธารณะกลับ () | คว่ำ |
| ฟังก์ชั่นสาธารณะ nrs_tp_image เบลอ (readonly Real Sigma) | เบลอ |
| ฟังก์ชั่นสาธารณะ nrs_tp_image unsharpen (readonly Real Sigma, threshold แบบอ่านอย่างต่อเนื่อง) | ไม่คม |
| ฟังก์ชั่นสาธารณะ nrs_tp_image adjust_contrast (Readonly Real C) | ปรับ _contrast |
| ฟังก์ชั่นสาธารณะ NRS_TP_IMAGE Brighten (อ่านอย่างยาวนาน V) | ทำให้สว่างขึ้น |
| ฟังก์ชั่นสาธารณะ NRS_TP_IMAGE HUEROTATE (readonly Long V) | ผู้มีส่วนร่วม |
| ฟังก์ชั่นสาธารณะ 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()