Q: Working with Graphics object  
Author Message
kirchu





PostPosted: Visual C# General, Q: Working with Graphics object Top

Hello everybody.
I have a text file with the paths of all images I want to use. What I want to achieve is to read this text file line by line, create a bitmap using the path, resize the bitmap to a custom size and place this so called thumbnail into a graphics object. The graphics has to write on a bitmap of custom size. What I don't know is how to place all the thumbnails so whenever they reach the end of the width to go on the next row. I hope you understand what I mean.

g.DrawImage (bmpFromTXT, (i%10) * 20, (i / 10) * 20, regionWidth, regionHeight);
i tried this but does not seem to work. It just displays them half the way of the bitmap to write on



Visual C#4  
 
 
RizwanSharp





PostPosted: Visual C# General, Q: Working with Graphics object Top

You want to Create Thumbnails of Images on a single Bitmap or on some Surface like Panel or Control You want that when a Row is filled with say 5 images and there is no space horezintally to put another image, It shuold go on the Next Line and start from X=0 Is it

Best Regards,