Quantcast
Channel: WriteableBitmapEx
Viewing all articles
Browse latest Browse all 360

Closed Issue: Bug in Crop when width/height is same as the source width/height [15084]

$
0
0
When using the .Crop function with the same width (or height) as the source width (or height) , the returned result is one pixel smaller.
 
Dim img As New WriteableBitmap(100, 100)

Dim img2 As WriteableBitmap = img.Crop(0, 0, 50, 50)
'Correct : returns a 50x50 image
 
Dim img3 = img.Crop(0, 0, 100, 50)
'Bug? : returns a 99x50 image , expected 100x50

Viewing all articles
Browse latest Browse all 360

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>