Click here to Skip to main content
15,894,955 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, I'm a beginner coder in c#. I have created a .tif splitting and merging application in .net using c#. The problem I have is that I need to select a number of images that are loaded in the panel control of the form so that the selected images can be merged. Any help would be appreciated.
Thanks in advance. :confused:
Posted
Updated 12-Aug-10 2:53am
v2

Do you mean allow the user to select the images that are merged, or doing it programatically from a known list of files?

Merging the images into a single one shouldn't be that hard (assuming they're square). Just create a blank bitmap of the desired (combined) size, and blit the images onto that base image at the desired/appropriate coordinates.

Allowing the user the chance to actually select the images that are to be merged involves creating a ListView control that uses the display mode that shows thumbnails. When the user double-clicks one, its blitted onto the base bitmap at an appropriate coordinate.
 
Share this answer
 
Thanks for the quick responce...i may have put across my query abit wrong. When the user selects an image from the "OpenFileDialog" box and clicks the "load/split image" button , a number of split images are displayed in the panel control of the form. I want to know if i can make those images selectable so that the user can select a few of them from the panel and when he hits the "merge" button they are merged. The merge and all other methods i have works fine, i just want to make the pictures that are loaded onto the panel selectable.
NB: all images that are loaded are square.
Thanks .
 
Share this answer
 
Comments
#realJSOP 12-Aug-10 11:15am    
Then put them in a ListView using the thumbnail mode.
im trying that at the moment....thanks
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900