Solved

Getting dimensions of bmp for dbimage or image components?

Posted on 1998-06-12
2
235 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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…

739 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