pbimage
1.0.0
Conversion de type d'image, échelle, modification de PowerBuilder
Plus d'informations: 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| Nom de la fonction | Description |
|---|---|
| fonction publique Ulong Height () | hauteur |
| fonction publique Ulong Width () | largeur |
| Fonction publique NRS_TP_IMAGE GRAYSCALE () | niveaux de gris |
| sous-programme public invert () | inverser |
| Fonction publique NRS_TP_IMAGE BLUR (Readonly Real Sigma) | se brouiller |
| Fonction publique NRS_TP_IMAGE UNSHARPEN (ReadOnly Real Sigma, Readonly Long Threshold) | non-sharpen |
| Fonction publique NRS_TP_IMAGE ADGL_CONTRAST (ReadOnly Real C) | ajustement_contraste |
| Fonction publique NRS_TP_IMAGE BURGEN (Readonly Long V) | éclairer |
| Fonction publique NRS_TP_IMAGE Huerotate (Readonly Long V) | huerotate |
| fonction publique nrs_tp_image flipv () | flipv |
| fonction publique nrs_tp_image fliph () | fliph |
| fonction publique nrs_tp_image rotate90 () | rotation90 |
| fonction publique nrs_tp_image rotate180 () | rotation180 |
| fonction publique nrs_tp_image rotate270 () | rotation270 |
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()