Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


Homothetic images : is this possible ?


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-28-2008, 06:12 PM
Junior Member
 
Join Date: Apr 2008
Posts: 11
Default Homothetic images : is this possible ?

Hello,

Currently, the 3 images modes are :
- cStretchImage
- cCenterImage
- cNormalImage

Is there an option that would allow the image to be homothetically resized ?

I hope I'm clear. If not, I'll try to explain with pictures.

Thanks
Reply With Quote
  #2 (permalink)  
Old 04-28-2008, 07:04 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,466
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Quote:
Originally Posted by origami View Post
homothetically
I am afraid that is not an English word that I recognise.
Reply With Quote
  #3 (permalink)  
Old 04-28-2008, 07:20 PM
Junior Member
 
Join Date: Apr 2008
Posts: 11
Default

What I mean is to be able to use a "Homothetic transformation" (I checked in Wikipedia, so this one should exist ;-) )

If I use the current "cStretchImage" mode, the proportions of the picture are changed to fill enterelly the image component.

If I use cCenterImage or cNormalImage, the proportions are kept, but if the picture is bigger than the component, then only a portion of the picture will be displayed.

What I would like is to be able to see the full picture, reduced so that it fits inside the component, but keeping the initial proportions (a square will remain square).

Hope this makes sense !
Reply With Quote
  #4 (permalink)  
Old 04-28-2008, 08:38 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Switzerland
Posts: 529
Awards Showcase
Competition Winner 
Total Awards: 1
Default

Look at the dzImage library there is a zoom function in.

ZoomImage(sourceImage, Percent): Zooms an image Percent% of the original (Percent = 0 to 1000). Returns the Zoomed Image

I am shure that this is what you are looking for.

Best regards
__________________
Klaus
Switzerland
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
retrieve images and index lux1963 Questions & Help Needed 3 05-18-2008 01:42 PM
Embed images in the exe alfcen Basic4ppc Wishlist 2 03-22-2008 11:46 AM
Images and memory wolfgang Questions & Help Needed 5 02-23-2008 05:08 PM
Card images Stellaferox Code Samples & Tips 11 02-02-2008 03:44 PM
Images are only adresses Put Claude Questions & Help Needed 6 05-29-2007 02:54 PM


All times are GMT. The time now is 06:14 PM.


Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0