Solved

Getting dimensions of bmp for dbimage or image components?

Posted on 1998-06-12
2
228 Views
Last Modified: 2010-04-04
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
0
Comment
Question by:mykyl
2 Comments
 
LVL 3

Accepted Solution

by:
Matvey earned 50 total points
ID: 1352520
Load the Image and compare dbImage1.Width with dbImage1.Picture.Graphic.Width, and the same with height. Then set the stretch property if needed.

Cheers
bosism@netvision.net.il
0
 

Author Comment

by:mykyl
ID: 1352521
I have got it to work with all forms. Thanks
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question