Getting dimensions of bmp for dbimage or image components?

When loading a bmp into a dbimage component how do I get the component to see if the Bmp is too big to show within the dbimage and put stretch on automaticaly and if the bmp is smaller than the size of the dbimage then stretch is off?
Any help please would be appreciated.
Mike Ross
Who is Participating?
MatveyConnect With a Mentor Commented:
Load the Image and compare dbImage1.Width with dbImage1.Picture.Graphic.Width, and the same with height. Then set the stretch property if needed.

mykylAuthor Commented:
I have got it to work with all forms. Thanks
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.