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?
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?
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.
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!
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.