Make a new image from part of image like paint brush does
-
hi all, i want to make an application just like MS paint,images will be loaded to it and upon selection of part of image it will be saved as new file, but only one part of image not full image file,i was able to select the part of image but how to copy/make a new image file from selected image part and save to disk or draw it again,
Regards. Tasleem Arif
-
hi all, i want to make an application just like MS paint,images will be loaded to it and upon selection of part of image it will be saved as new file, but only one part of image not full image file,i was able to select the part of image but how to copy/make a new image file from selected image part and save to disk or draw it again,
Regards. Tasleem Arif
You can use the Bitmap constructor to create a new bitmap that is part of the old one
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
hi all, i want to make an application just like MS paint,images will be loaded to it and upon selection of part of image it will be saved as new file, but only one part of image not full image file,i was able to select the part of image but how to copy/make a new image file from selected image part and save to disk or draw it again,
Regards. Tasleem Arif
You don't need to develop your own MS-paint-like software.. You can use the opensource Paint.NET.. http://www.getpaint.net/download.html
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) "Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
-
You can use the Bitmap constructor to create a new bitmap that is part of the old one
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
it creates the new image and resize it but,i want to create the new image from part of image not resize orignal image.
Regards. Tasleem Arif
OK, then create a graphics object from a bitmap the right size and draw the fragment onto it.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
OK, then create a graphics object from a bitmap the right size and draw the fragment onto it.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )