gvoulg Member Licensed User Longtime User May 29, 2017 #1 Does anybody have an idea of resizing a jpg image (keeping the ratio) Maybe with inline code? Didn't find any b4j library on this subject Regards George
Does anybody have an idea of resizing a jpg image (keeping the ratio) Maybe with inline code? Didn't find any b4j library on this subject Regards George
Erel B4X founder Staff member Licensed User Longtime User May 29, 2017 #2 You can put the image in an ImageView, resize the ImageView and call ImageView.Snapshot to get the resized image. Upvote 0
You can put the image in an ImageView, resize the ImageView and call ImageView.Snapshot to get the resized image.
Informatix Expert Licensed User Longtime User May 30, 2017 #3 gvoulg said: Does anybody have an idea of resizing a jpg image (keeping the ratio) Maybe with inline code? Didn't find any b4j library on this subject Regards George Click to expand... The sgeUtils class of SimpleGameEngine provides a Crop method if you need to cut some parts. Last edited: May 30, 2017 Upvote 0
gvoulg said: Does anybody have an idea of resizing a jpg image (keeping the ratio) Maybe with inline code? Didn't find any b4j library on this subject Regards George Click to expand... The sgeUtils class of SimpleGameEngine provides a Crop method if you need to cut some parts.