I'm trying to get pieces from an image and put them together into another image. This is my first time using graphics.
I have an image made up of four 16X16 icons that is 16X48px. I want to get image pieces and put them together into another image. I've tried the code below and it gets the first image only. I'm sure there is a better way even if I could get this to work.
Any help is appreciated. iconIndexes has 1, 2, 3
public void CreateIcon( int[] iconIndexes ) {
int startPixel;
string imagePath = @"~/GFX/TreeIcons/TechnologyLifecycleState/LifecycleStrip.png";
Image fullImage = Image.FromFile( HttpContext.Current.Server.MapPath( imagePath ) );
Bitmap icon = new Bitmap( 48, 16 );
Bitmap crop = new Bitmap( 16, 16 );
Graphics iconCanvas = Graphics.FromImage( icon );
Graphics cropCanvas = Graphics.FromImage( crop );
Rectangle leftIcon = new Rectangle ...
Go to the complete details ...