I have a small problem with the ImageEdit library.
I'm not really used to working with image libraries, so my question might have a simple answer.
I have a picture (1024 x 768) which is set as background for a form (320 x 240).
I have calculated that the original image is 3,2 times bigger then it is when adjusted to the form size.
Then when I try to crop the image (Part of the right side), It "croppes" (Is that even a word?) from the original image, instead of the form image.
Therefore, I crop the wrong area (3,2 pixels wrong to be exact).
My code:
ImageEdit.LoadImage (Form1.Image)
ImageEdit.Crop (140,0,240,240)
SideBar.Image = ImageEdit.GetImage ("C")
This does not work either
Bitmap.New1 (AppPath & "\1.bmp") 'The original image
ImageEdit.LoadImage (Bitmap.value)
ImageEdit.Crop (140,0,240,240)
SideBar.Image = ImageEdit.GetImage ("C")
And finally, the most mathematically correct (?)
Bitmap.New1 (AppPath & "\1.bmp") 'The original image
ImageEdit.LoadImage (Bitmap.value)
ImageEdit.Crop (140 / 3.2,0,240 / 3.2,240 / 3.2) 'Split each value by 3,2
SideBar.Image = ImageEdit.GetImage ("C")
I'm probably just too blind to see the answer