Enum RenderQuality

RenderQuality enumeration

It describes the rendering quality of Warp.

public enum RenderQuality

Values

NameValueDescription
Turbo4The fastest option, but the quality suffers.
VeryFast18If you need it fast, it may be suitable for small curvatures.
Fast35Allows you to make rendering faster with a small drop in quality.
Normal60Recommended value for most curvatures
Good130Higher than standard quality, slower speed. Recommended for strong distortions.
Excellent260The slowest option. Recommended for strong distortions and high resolutions.

Examples

The following code demonstrates WarpSettings.RenderQuality property to configure warp deformation.

[C#]

string sourceFile = "Warping.psd";
List<string> outputFiles = new List<string>();

PsdLoadOptions loadOptions = new PsdLoadOptions() { LoadEffectsResource = true, AllowWarpRepaint = true };

RenderQuality[] qualityValues = { RenderQuality.Turbo, RenderQuality.Fast, RenderQuality.Normal, RenderQuality.Excellent };

for (int i = 0; i < 4; i++)
{
    using (var psdImage = (PsdImage)Image.Load(sourceFile, loadOptions))
    {
        // It gets WarpSettings from Smart Layer
        WarpSettings warpSettings = ((SmartObjectLayer)psdImage.Layers[1]).WarpSettings;

        // It sets size of warp processing area
        warpSettings.RenderQuality = qualityValues[i];
        ((SmartObjectLayer)psdImage.Layers[1]).WarpSettings = warpSettings;

        string outputFile = "export" + qualityValues[i].ToString() + ".png";
        outputFiles.Add(outputFile);

        // There should no error here
        psdImage.Save(outputFile, new PngOptions { ColorType = PngColorType.TruecolorWithAlpha });
    }
}

See Also