AForge.NET

  :: AForge.NET Framework :: Articles :: Forums ::

How to do Image Padding using AForge.NET?

The forum is to discuss topics related to different areas of image processing and computer vision.

How to do Image Padding using AForge.NET?

Postby edurazee » Sat Dec 03, 2016 10:08 am

Is there any class available in AForge.net to pad a colored/grayscale image?

If NOT,

How to do Image Padding using AForge.NET?
edurazee
 
Posts: 12
Joined: Sat Dec 03, 2016 10:06 am

Re: How to do Image Padding using AForge.NET?

Postby andrew.kirillov » Sat Dec 03, 2016 3:30 pm

Not clear what exactly you need ...

If you need to add border/frame, then just create a bigger image, fill it with the color you want and then draw your original image on it.
With best regards,
Andrew


Interested in supporting AForge.NET Framework?
User avatar
andrew.kirillov
Site Admin, AForge.NET Developer
 
Posts: 3453
Joined: Fri Jan 23, 2009 9:12 am
Location: UK

Re: How to do Image Padding using AForge.NET?

Postby edurazee » Sat Dec 03, 2016 4:44 pm

andrew.kirillov wrote:Not clear what exactly you need ...

If you need to add border/frame, then just create a bigger image, fill it with the color you want and then draw your original image on it.



That is what I needed to know.

Could you please provide me any resource?
edurazee
 
Posts: 12
Joined: Sat Dec 03, 2016 10:06 am

Re: How to do Image Padding using AForge.NET?

Postby andrew.kirillov » Sun Dec 04, 2016 8:29 am

The resource you need is called MSDN. Google also help.

Here it is: System.Drawing.Graphics
With best regards,
Andrew


Interested in supporting AForge.NET Framework?
User avatar
andrew.kirillov
Site Admin, AForge.NET Developer
 
Posts: 3453
Joined: Fri Jan 23, 2009 9:12 am
Location: UK




Return to Image Processing and Computer Vision