Solved

Getting dimensions of bmp for dbimage or image components?

Posted on 1998-06-12
2
240 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

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…
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…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

717 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