using (GdPictureImaging gdpictureImaging = new GdPictureImaging())
{
// LoadInMemory parameter is set to true in order to be able to update the input file.
int imageID = gdpictureImaging.CreateGdPictureImageFromFile("image_1080x720.jpg", true);
// Set the blur intensity of the gaussian filter.
int kernel = 20;
// Set the region of interest.
gdpictureImaging.SetROI(300, 200, 500, 150);
// Applying the gaussian filter to the ROI.
gdpictureImaging.FxGaussian(imageID, kernel);
// Deleting the region of interest.
gdpictureImaging.ResetROI();
gdpictureImaging.SaveAsJPEG(imageID, "image_1080x720.jpg");
gdpictureImaging.ReleaseGdPictureImage(imageID);
}