pbimage
1.0.0
Tipo de imagem Conversão, escala, modificação no PowerBuilder
Mais informações: 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, OIC, 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| Nome da função | Descrição |
|---|---|
| Função pública altura ulong () | altura |
| Função pública Largura Ulong () | largura |
| Função pública nrs_tp_image cinza () | escala de cinza |
| Sub -rotina pública Invert () | invertido |
| Função pública NRS_TP_IMAGE Blur (readonly real sigma) | borrão |
| Função pública NRS_TP_IMAGE NEMPARPEN (SIGMA READONLY REAL, READONLY LONGS | Netarpen |
| Função pública NRS_TP_IMAGE AJUST_CONTRAST (READONLY REAL C) | ajuste_contrast |
| Função pública NRS_TP_IMAGE BLILLEN (READONLY LONG V) | iluminar |
| função pública nrs_tp_image huerotate (readonly long v) | huerotate |
| função pública nrs_tp_image flipv () | flipv |
| Função pública nrs_tp_image fliph () | fliph |
| Função pública nrs_tp_image girate90 () | girar90 |
| Função pública nrs_tp_image girate180 () | girate180 |
| Função pública nrs_tp_image girate270 () | girate270 |
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()