Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) 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: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
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: Fully, Switzerland
Posts: 4,463
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
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

Beginner's Guide / User's Guide
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 Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Embed images in the exe alfcen Basic4ppc Wishlist 2 03-22-2008 11:46 AM
Images and memory wolfgang Questions (Windows Mobile) 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 (Windows Mobile) 6 05-29-2007 02:54 PM
Image Button images Nkieto Questions (Windows Mobile) 1 05-01-2007 02:55 PM


All times are GMT. The time now is 09:21 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0