derekthornton
asked on
Drawing Parts of an Image with C#
I'd like to use XML to draw only parts of an image using C#. That is to say ...Something like what Winamp does for its GUI, you've got your graphics stored in .jpg or .png files, and several things stored in each image ..and the images are drawn from seperate parts of the images...so ,say I want to draw my titlebar, I've got an image named "bars.png", and the title bar is in 100,100x200,400, I want to draw only that portion of the image to the screen ..any ideas?
ASKER
Eeh, No. I'm talking about using template files to store series of images...
Say, I've got a .png that has 4 or 5 different pictures in it, it's for drawing a GUI. I want to be able to draw only the image at certain coordinates from the .png to the screen, like you'd do with 3D Textures and such for wrapping them around meshes.
Say, I've got a .png that has 4 or 5 different pictures in it, it's for drawing a GUI. I want to be able to draw only the image at certain coordinates from the .png to the screen, like you'd do with 3D Textures and such for wrapping them around meshes.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
another link for croping an image
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/_gdiplus_cropping_and_scaling_images_usecsharp.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/_gdiplus_cropping_and_scaling_images_usecsharp.asp
Thanx
Glad to help :)
Glad to help :)
something like this
ImagesToolbar.Images.AddSt
as used in this example
http://www.codeproject.com/csharp/webbrowser.asp#xx915175xx