pbimage
1.0.0
Image Type -Konvertierung, Skalierung, Modifikation im PowerBuilder
Weitere Informationen: 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| Funktionsname | Beschreibung |
|---|---|
| Öffentliche Funktion Ulong Height () | Höhe |
| öffentliche Funktion Ulong Breite () | Breite |
| Öffentliche Funktion nrs_tp_image Graustufen () | Graustufen |
| öffentliche Unterprogramme invert () | umkehren |
| Öffentliche Funktion nrs_tp_image Blur (Readonly Real Sigma) | verwischen |
| Öffentliche Funktion NRS_TP_IMAGE UNSHARPEN (Readonly Real Sigma, Readonly Long Schwelle) | Unscharpen |
| Öffentliche Funktion NRS_TP_IMAGE adjage_contrast (readonly real c) | einstellen_contrast |
| Öffentliche Funktion nrs_tp_image hellen (readonly long v) | aufhellen |
| Öffentliche Funktion nrs_tp_image huerotate (readonly long v) | Huerotate |
| Öffentliche Funktion nrs_tp_image Flipv () | Flipv |
| öffentliche Funktion nrs_tp_image Fliph () | Fliph |
| Öffentliche Funktion nrs_tp_image rotate90 () | drehen90 |
| öffentliche Funktion nrs_tp_image rotate180 () | drehen180 |
| Öffentliche Funktion nrs_tp_image rotate270 () | rotate270 |
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()