Hello!
i am tryng to understand why my image change his scale after processing it with rsimageprocessing lib, the image dimensions does not change after processing.
If i comment this part of the code the image stay exacly where it should be.
But if i run this code the result is a small zoomed out image:
What's wrong gurus?
i am tryng to understand why my image change his scale after processing it with rsimageprocessing lib, the image dimensions does not change after processing.
If i comment this part of the code the image stay exacly where it should be.
B4X:
Dim ChangeColor As RSImageEffects
LoadImageFromGallery = ChangeColor.SepiaToning(LoadImageFromGallery,0,0,0,0)
But if i run this code the result is a small zoomed out image:
B4X:
Log(LoadImageFromGallery.Width& " " &LoadImageFromGallery.Height&"BEFORE")
Dim ChangeColor As RSImageEffects
LoadImageFromGallery = ChangeColor.SepiaToning(LoadImageFromGallery,0,0,0,0)
Log(LoadImageFromGallery.Width& " " &LoadImageFromGallery.Height&"AFTER")
SourceImageRect.Initialize(0, 0, LoadImageFromGallery.Width, LoadImageFromGallery.Height)
TouchImageViewRect.Initialize(0, 0, TouchImageView1.Width, TouchImageView1.Height)
TouchImageView1.ScaleSrcRectToDestRect(SourceImageRect, TouchImageViewRect, "CENTER")
Log(LoadImageFromGallery.Width& " " &LoadImageFromGallery.Height&"POST")
TouchImageView1.SetBitmap(LoadImageFromGallery)
What's wrong gurus?