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.

Stretch large image to fit form background?

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-11-2009, 08:05 PM
Junior Member
 
Join Date: Nov 2008
Posts: 11
Default Stretch large image to fit form background?

I am trying to stretch a large image to fit the background of the form sized at 240x264. I am compiling the executable to auto scale. The images are stretching as I would expect for the actual images using cStretchImage. However, there is no selection to apply cStretchImage to the form image that I can find.

I am trying to take a 480x528 image and have it stretch on my VGA pocket PC. The background is currently only showing a 240x264 pixel area of the image. My guess is that it is using the cCenterImage option by default. This makes it look blurry on the device.

I have tried using the following with the exact same results.
- Form.LoadPicture(Images(22))
- Form.Image = Images(22)
- Form.DrawImage (Images(22),0,0,Form.Width,Form.Height)

Is it possible to have a large image stretch down to the background size? Am I asking the right question?

Thanks in advance
Reply With Quote
  #2 (permalink)  
Old 07-12-2009, 03:12 PM
ExcludeReality's Avatar
Senior Member
 
Join Date: Nov 2008
Location: Greenville, South Carolina
Posts: 166
Default

A form background has stretch mode by default, and you can't change it. Unless there is a library for it...?
__________________
Codito, ergo sum
"I code, therefore I am"
Reply With Quote
  #3 (permalink)  
Old 07-13-2009, 02:53 PM
Junior Member
 
Join Date: Nov 2008
Posts: 11
Default

I was mistaken, the image was being scaled. I thought that it was being cropped.
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
Large menu Ida Beta Versions 4 04-26-2009 10:37 AM
transferring large files from PC to PPC RB Smissaert Questions (Windows Mobile) 9 12-16-2008 01:21 PM
Form Image in FullScreen orhan Questions (Windows Mobile) 4 05-09-2008 10:56 AM
Newbie: Background image loading enonod Questions (Windows Mobile) 2 04-27-2008 03:58 PM
Drawing parts of a large image. Erel Code Samples & Tips 0 06-07-2007 08:07 AM


All times are GMT. The time now is 04:36 AM.


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