Click here to Skip to main content
15,904,494 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
Can I cut an image in to four pieces. I have only the image file.
Posted
Comments
enhzflep 15-Mar-12 2:04am    
Yes.
Though it would be easier if you had a saw or knife too.
Pablo Aliskevicius 15-Mar-12 2:35am    
If the image is on paper, scissors may do the trick.
Sergey Alexandrovich Kryukov 15-Mar-12 2:10am    
So, C# or C++? Maybe, C++/CLI?
If this is still .NET, do you want to use WPF or something else (and then, most likely System.Drawing)? Tag it.
--SA

1 solution

Look for one of the image loading/saving packages here on this website. Load the image into memory. Then you can split it into four pieces by extracting the parts you are interested in, into a separate buffer. Then save the extracted images in the same format as your original image.

If you need further help, then please tell us what file type your image has and more about your programming environment.
 
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