473,396 Members | 1,879 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Scaling images in compact framework

12
Hi!

I'd like to scale some images for a poker game. I'm programming in C#. I haven't found any methods for scaling supporting compact framework. Any suggestions?
Jun 4 '07 #1
4 6065
Motoma
3,237 Expert 2GB
Hi!

I'd like to scale some images for a poker game. I'm programming in C#. I haven't found any methods for scaling supporting compact framework. Any suggestions?
What do you mean by scaling? Are you trying to resize image files, or display them at a reduced size? Could you post the relevant display code?
Jun 4 '07 #2
Plater
7,872 Expert 4TB
You are not going to want to scale images on the fly on an embeded system, that's just nasty. Those poor little processors. I recomend you hack up the pictures on a real PC (use the evil overloads Adobe) and just use the already minisicule pictures on the embeded device.
Jun 4 '07 #3
Sladan
12
Yeah, you have probably right. The problem is that I want to adapt the pictures för many different screen sizes. I have three standard resolution where I use different sizes, but I'd like a dynamic mode aswell. But maybe it can't be done.
Thanks anyway!
Jun 5 '07 #4
Plater
7,872 Expert 4TB
For embeded you generaly have to include the sdk on a per product basis. So if you are switching to a different platform you would have to re-make the project anyway. Would be pretty quick to popout some images for every screen size you wanted.

You could also make a custom class that inherints from bitmap and write a function to scale things down, you can use the Graphics object and do some ratio math to re-draw your images.
Jun 5 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Earle Oxner | last post by:
We are developing an application on PocketPC2002 platform and we are trying to make webservice calls using HTTPS. HTTP works fine but HTTPS does not work. The same code which doesn't work on...
2
by: Duncan | last post by:
I am using the evaluation version of CE.NET 4.1. I had also installed the release version of the Compact Framework. I uninstalled the CE.NET 4.1, and then realized I needed it again and...
1
by: Ron Crump | last post by:
Hi, I have a small javascript (scalegr.js) that re-scales a sequence of images on a page to be less than the frame width, thus: function scalegr(a) { var imgs = document.images; var fw =...
1
by: Asad Khan | last post by:
Hi, I have Visual Studio 2002 Enterprise Architecture Edition. I was wondering if anyone has any information on how I can develop applications for .Net Compact Framework using this IDE. I've heard...
1
by: susie_richie_30 | last post by:
Hi, I am trying to apply gray scaling to color as well as black/white images. I have tried using the pixel by pixel approach to achieve the scaling. But the particular approach has a issue with...
3
by: pratush | last post by:
hi. I am a bit new to graphics programing. I am trying in vb.net to make a 3 walled structure which'll give the look of 3d. for that purpose, I am using same rectangle filled with textured brush...
5
by: bob | last post by:
Hi Using 2003 - targeting the compact framework (c#), but would like to do most development using the full.net (manually leaving out stuff not in the compact framework). Q. Trying to find a...
3
by: Yofnik | last post by:
Hello all, I need your help. Internet Explorer 6+ has a registry setting (UseHR) that will automatically scale images for displays with high resolution (DPI). I am building a web based...
5
matheussousuke
by: matheussousuke | last post by:
Hello, I'm using tiny MCE plugin on my oscommerce and it is inserting my website URL when I use insert image function in the emails. The goal is: Make it send the email with the URL...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.