コード例 #1
0
 public static byte[] Resize(byte[] _source, int _target_width, int _target_height, ImageCodecInfo _codecInfo, EncoderParameters _paraments)
 {
     return(BitmapPlus.Resize(new MemoryStream(_source), _target_width, _target_height, _codecInfo, _paraments));
 }
コード例 #2
0
 public static byte[] Crop(byte[] _source, int _source_x, int _source_y, int _source_w, int _source_h, int _target_w, int _target_h, ImageCodecInfo _codecInfo, EncoderParameters _paraments)
 {
     return(BitmapPlus.Crop(new MemoryStream(_source), _source_x, _source_y, _source_w, _source_h, _target_w, _target_h, _codecInfo, _paraments));
 }