chequered background in the image

mkvidyashankar

Active Member
Licensed User
Longtime User
I am trying to load an image to imageview. I got chequered texture in the image. Any solution to remove this? please help.


I have attached the both images.( The image is resized for uploading purpose)
 

Attachments

  • original.jpg
    original.jpg
    40.4 KB · Views: 197
  • loaded.jpg
    loaded.jpg
    9.7 KB · Views: 174

mkvidyashankar

Active Member
Licensed User
Longtime User
Hi

Size of the original image is 1280x960, i'm converting this to 600x450 in the application to avoid memory errors.

I am using this method to resize the image


Sub ResizeBitmap(original As Bitmap, width As Int, height As Int) As Bitmap
Dim new As Bitmap
new.InitializeMutable(width, height)
Dim c As Canvas
c.Initialize2(new)
Dim destRect As Rect
destRect.Initialize(0, 0, width, height)
c.DrawBitmap(original, Null, destRect)
Return new
End Sub
 
Last edited:
Upvote 0
Top