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 () | رمادي |
| روتين فرعي عام invert () | عكس |
| الدالة العامة NRS_TP_IMAGE Blur (سيغما حقيقية) | طمس |
| الوظيفة العامة NRS_TP_IMAGE UNSHARPEN (سيغما حقيقية ، عتبة طويلة) | unsharpen |
| الدالة العامة NRS_TP_IMAGE add_contrast (Readonly Real C) | add_contrast |
| الدالة العامة NRS_TP_IMAGE تفاقم (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 () | rotate180 |
| الدالة العامة 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()