Skip to main content
gamedev.net
🔒 Locked

Graphics programming help is needed

Started by ulucky 0 replies 650+ views
Original Post
ulucky
ulucky
Hi Here is link http://www.assol.mipt.ru/isr/catalog_en.html . Here if u click on an photo, a new page will be opened with that photo enlarged, and there u can choose textile material, color for that photo, and new photo is whith selected colors, textile is gained. I just want u to show me the way, programming language(easy to write program analog to this),which programming section i should learn(image processing or something like this). I want to write program similar to this, but a desktop program, Now i'm programming on C#.but have no idea,experience in image like programming Thanks in advance
Headkaze
Headkaze
You can certainly do those sorts of things with C# and the System.Drawing namespace.

For things like adjusting the hue, saturation and brightness of images you should take a look at the ColorMatrix. There are examples on the web related to this.

As for changing the textiles, I would think most of this is done using png's with an alpha channel. Again you can use the ColorMatrix to adjust the alpha transparency of an image. But I just think it's using masks to apply the texture to sections of the picture. I'm not exactly sure how you would go about this without p/invoking a bitblt, but I'm sure there are methods using .NET. The easiest way would be to split the image up into separate parts and painting them as layers over each other. The textile is overlayed, this can be done by having the image and textile at 50% alpha.

The Bitmap.MakeTransparent() method may also be of some help.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.