470,648 Members | 1,602 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,648 developers. It's quick & easy.

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 5937
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

Post your reply

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

Similar topics

reply views Thread by Earle Oxner | last post: by
1 post views Thread by Ron Crump | last post: by
1 post views Thread by Asad Khan | last post: by
1 post views Thread by susie_richie_30 | last post: by
3 posts views Thread by pratush | last post: by
3 posts views Thread by Yofnik | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.