H holographl Member Licensed User Longtime User Nov 6, 2012 #1 I'm working on an app that has to allow the user to change a bitmap. The RSImage library has been great for all the things I need but I seem to be having a problem with the ExtractBitmap method. I created the following sub: Code: Copy Sub CaptureButton_Click Dim bm As Bitmap bm=RSImagePrc.extractBitmap(ImageView1.Bitmap,ImageView1.Left,ImageView1.Top,148dip,200dip) ImageView2.Bitmap = bm End Sub ImageView1 is the source image. ImageView2 is the destination. This is also 148x200 pixels. For testing I'm just grabbing the upper left corner of ImageView1. What happens is that it grabs most of the height correctly but only about 2/3 of the width. I have tried the height and width values with and without the "dip" but that makes no difference. If anyone has and ideas it would be appreciated.
I'm working on an app that has to allow the user to change a bitmap. The RSImage library has been great for all the things I need but I seem to be having a problem with the ExtractBitmap method. I created the following sub: Code: Copy Sub CaptureButton_Click Dim bm As Bitmap bm=RSImagePrc.extractBitmap(ImageView1.Bitmap,ImageView1.Left,ImageView1.Top,148dip,200dip) ImageView2.Bitmap = bm End Sub ImageView1 is the source image. ImageView2 is the destination. This is also 148x200 pixels. For testing I'm just grabbing the upper left corner of ImageView1. What happens is that it grabs most of the height correctly but only about 2/3 of the width. I have tried the height and width values with and without the "dip" but that makes no difference. If anyone has and ideas it would be appreciated.