| View previous topic :: View next topic |
| Author |
Message |
Zannha Guest
|
Posted: Wed May 26, 2004 1:59 pm Post subject: Zooming on images |
|
|
How is this normally done?
Is it just a matter of scaling the image?
Thanks
|
|
| Back to top |
|
 |
Malcolm Smith Guest
|
Posted: Thu May 27, 2004 4:30 am Post subject: Re: Zooming on images |
|
|
It depends on the quality you require. If you stretch you will get
pixellation - I use ImageEn from www.hicomponents.com for my special needs
and highly recommend it.
--
Malcolm Smith
MJ Freelancing
http://www.mjfreelancing.com
"Zannha" <asd> wrote
| Quote: | How is this normally done?
Is it just a matter of scaling the image?
Thanks
|
|
|
| Back to top |
|
 |
Damon Chandler (TeamB) Guest
|
Posted: Thu May 27, 2004 4:11 pm Post subject: Re: Zooming on images |
|
|
Hi,
Most applications use the StretchBlt() function to draw the just
visible portion of the bitmap in a scaled fashion. If you're zooming
out, the "visible portion" is the whole image; if you're not zoomed in,
the "visible portion" will depend on the size of your viewing window.
Have a look at these two articles in the May '02 issue of the C++Builder
Developer's Journal...
* Display-optimal DIB section bitmaps
* Fast bitmap zooming and scrolling
They're available here...
http://www.cppbuilderdevjournal.com/articles/articleindex.php
Best of luck,
--
Damon (TeamB)
Zannha wrote:
| Quote: |
How is this normally done?
Is it just a matter of scaling the image?
Thanks
|
|
|
| Back to top |
|
 |
Zannha Guest
|
Posted: Thu May 27, 2004 10:32 pm Post subject: Re: Zooming on images |
|
|
Thanks, i'll check out ImageEn and the resources linked to!
Appreciate it!
Zan
|
|
| Back to top |
|
 |
|