SKCanvas.Discard Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Makes the canvas contents undefined.
public void Discard ();
Remarks
Subsequent calls that read the canvas pixels, such as drawing with SKBlendMode, return undefined results. Calling this method does not change clip or matrix and may do nothing, depending on the implementation of the underlying SKSurface.
Discard() allows optimized performance on subsequent draws by removing cached data associated with the underlying SKSurface. It is not necessary to call Discard() once done with SKCanvas; any cached data is deleted when the owning SKSurface is deleted.
Applies to
SkiaSharp
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示