Freigeben über


ImageDecoder.PostProcessor Property

Definition

Return the PostProcessor currently set. -or- Modify the image after decoding and scaling.

public Android.Graphics.IPostProcessor? PostProcessor { [Android.Runtime.Register("getPostProcessor", "()Landroid/graphics/PostProcessor;", "", ApiSince=28)] get; [Android.Runtime.Register("setPostProcessor", "(Landroid/graphics/PostProcessor;)V", "", ApiSince=28)] set; }
[<get: Android.Runtime.Register("getPostProcessor", "()Landroid/graphics/PostProcessor;", "", ApiSince=28)>]
[<set: Android.Runtime.Register("setPostProcessor", "(Landroid/graphics/PostProcessor;)V", "", ApiSince=28)>]
member this.PostProcessor : Android.Graphics.IPostProcessor with get, set

Property Value

Attributes

Remarks

Property getter documentation:

Return the PostProcessor currently set.

Java documentation for android.graphics.ImageDecoder.getPostProcessor().

Property setter documentation:

Modify the image after decoding and scaling.

This allows adding effects prior to returning a Drawable or Bitmap. For a Drawable or an immutable Bitmap, this is the only way to process the image after decoding.

If combined with #setTargetSize and/or #setCrop, PostProcessor#onPostProcess occurs last.

If set on a nine-patch image, the nine-patch data is ignored.

For an animated image, the drawing commands drawn on the Canvas will be recorded immediately and then applied to each frame.

Like all setters on ImageDecoder, this must be called inside OnHeaderDecodedListener#onHeaderDecoded onHeaderDecoded.

Java documentation for android.graphics.ImageDecoder.setPostProcessor(android.graphics.PostProcessor).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to