Table of Contents

Method ApplyLook

Namespace
LMKit.Media.Image
Assembly
LM-Kit.NET.dll

ApplyLook(ImageLook)

Returns a new buffer carrying this image graded with look.

public ImageBuffer ApplyLook(ImageLook look)

Parameters

look ImageLook

The grade to apply.

Returns

ImageBuffer

A new ImageBuffer; the caller owns it.

Remarks

The result is RGBA32 when this buffer is RGBA32 and RGB24 otherwise (grayscale and bitonal sources are expanded first, since every look styles color). Alpha, when present, passes through unchanged: a look styles color, never coverage.

None yields a plain copy. This is the one implementation of the looks; every host that offers them (the document viewer's edit stage, the server's image routes) grades through it so the presets cannot drift apart.

Exceptions

ObjectDisposedException

Thrown if this instance has been disposed.

Share