C# Class Pinta.ImageManipulation.BaseEffect

Exibir arquivo Open project: PintaProject/Pinta.ImageManipulation Class Usage Examples

Public Methods

Method Description
Render ( ISurface surface ) : void

Render the effect on the specified surface.

Render ( ISurface src, ISurface dst ) : void

Render the effect from the source surface to the destination surface.

Render ( ISurface src, ISurface dst, Rectangle roi ) : void

Render the effect from the source surface to the destination surface.

Render ( ISurface surface, Rectangle roi ) : void

Render the effect on the specified surface within the specified rectangle of interest.

RenderAsync ( ISurface surface ) : Task
RenderAsync ( ISurface surface, CancellationToken token ) : Task
RenderAsync ( ISurface src, ISurface dst ) : Task
RenderAsync ( ISurface src, ISurface dst, CancellationToken token ) : Task
RenderAsync ( ISurface src, ISurface dst, Rectangle roi ) : Task
RenderAsync ( ISurface src, ISurface dst, Rectangle roi, CancellationToken token ) : Task
RenderAsync ( ISurface src, ISurface dst, Rectangle roi, CancellationToken token, IRenderProgress progress ) : Task
RenderAsync ( ISurface surface, Rectangle roi ) : Task
RenderAsync ( ISurface surface, Rectangle roi, CancellationToken token ) : Task
RenderAsync ( ISurface surface, Rectangle roi, CancellationToken token, IRenderProgress progress ) : Task

Protected Methods

Method Description
OnBeginRender ( ISurface src, ISurface dst, Rectangle roi ) : void
Render ( ColorBgra color ) : ColorBgra

Performs the actual work of rendering an effect. This overload represent a single pixel of the image.

Render ( ColorBgra src, ColorBgra dst, int length ) : void

Performs the actual work of rendering an effect. This overload represent a single line of the image. Do not call base.Render ().

RenderLine ( ISurface src, ISurface dst, Rectangle roi ) : void

Performs the actual work of rendering an effect. Do not call base.Render ().

RenderLoop ( ISurface src, ISurface dst, Rectangle roi, CancellationToken token, IRenderProgress progress ) : void
RenderLoop ( ISurface surface, Rectangle roi, CancellationToken token, IRenderProgress progress ) : void

Private Methods

Method Description
FindLastCompletedLine ( bool lines, int start ) : int

Method Details

OnBeginRender() protected method

protected OnBeginRender ( ISurface src, ISurface dst, Rectangle roi ) : void
src ISurface
dst ISurface
roi Rectangle
return void

Render() protected method

Performs the actual work of rendering an effect. This overload represent a single pixel of the image.
protected Render ( ColorBgra color ) : ColorBgra
color ColorBgra The color of the source surface pixel.
return ColorBgra

Render() protected method

Performs the actual work of rendering an effect. This overload represent a single line of the image. Do not call base.Render ().
protected Render ( ColorBgra src, ColorBgra dst, int length ) : void
src ColorBgra The source surface. DO NOT MODIFY.
dst ColorBgra The destination surface.
length int The number of pixels to render.
return void

Render() public method

Render the effect on the specified surface.
public Render ( ISurface surface ) : void
surface ISurface Surface to use a the source and destination.
return void

Render() public method

Render the effect from the source surface to the destination surface.
public Render ( ISurface src, ISurface dst ) : void
src ISurface The source surface.
dst ISurface The destination surface.
return void

Render() public method

Render the effect from the source surface to the destination surface.
public Render ( ISurface src, ISurface dst, Rectangle roi ) : void
src ISurface The source surface.
dst ISurface The destination surface.
roi Rectangle A rectangle of interest (roi) specifying the area(s) to modify. Only these areas should be modified.
return void

Render() public method

Render the effect on the specified surface within the specified rectangle of interest.
public Render ( ISurface surface, Rectangle roi ) : void
surface ISurface Surface to use a the source and destination.
roi Rectangle A rectangle of interest (roi) specifying the area(s) to modify. Only these areas should be modified.
return void

RenderAsync() public method

public RenderAsync ( ISurface surface ) : Task
surface ISurface
return Task

RenderAsync() public method

public RenderAsync ( ISurface surface, CancellationToken token ) : Task
surface ISurface
token System.Threading.CancellationToken
return Task

RenderAsync() public method

public RenderAsync ( ISurface src, ISurface dst ) : Task
src ISurface
dst ISurface
return Task

RenderAsync() public method

public RenderAsync ( ISurface src, ISurface dst, CancellationToken token ) : Task
src ISurface
dst ISurface
token System.Threading.CancellationToken
return Task

RenderAsync() public method

public RenderAsync ( ISurface src, ISurface dst, Rectangle roi ) : Task
src ISurface
dst ISurface
roi Rectangle
return Task

RenderAsync() public method

public RenderAsync ( ISurface src, ISurface dst, Rectangle roi, CancellationToken token ) : Task
src ISurface
dst ISurface
roi Rectangle
token System.Threading.CancellationToken
return Task

RenderAsync() public method

public RenderAsync ( ISurface src, ISurface dst, Rectangle roi, CancellationToken token, IRenderProgress progress ) : Task
src ISurface
dst ISurface
roi Rectangle
token System.Threading.CancellationToken
progress IRenderProgress
return Task

RenderAsync() public method

public RenderAsync ( ISurface surface, Rectangle roi ) : Task
surface ISurface
roi Rectangle
return Task

RenderAsync() public method

public RenderAsync ( ISurface surface, Rectangle roi, CancellationToken token ) : Task
surface ISurface
roi Rectangle
token System.Threading.CancellationToken
return Task

RenderAsync() public method

public RenderAsync ( ISurface surface, Rectangle roi, CancellationToken token, IRenderProgress progress ) : Task
surface ISurface
roi Rectangle
token System.Threading.CancellationToken
progress IRenderProgress
return Task

RenderLine() protected method

Performs the actual work of rendering an effect. Do not call base.Render ().
protected RenderLine ( ISurface src, ISurface dst, Rectangle roi ) : void
src ISurface The source surface. DO NOT MODIFY.
dst ISurface The destination surface.
roi Rectangle A rectangle of interest (roi) specifying the area to modify. Only these areas should be modified
return void

RenderLoop() protected method

protected RenderLoop ( ISurface src, ISurface dst, Rectangle roi, CancellationToken token, IRenderProgress progress ) : void
src ISurface
dst ISurface
roi Rectangle
token System.Threading.CancellationToken
progress IRenderProgress
return void

RenderLoop() protected method

protected RenderLoop ( ISurface surface, Rectangle roi, CancellationToken token, IRenderProgress progress ) : void
surface ISurface
roi Rectangle
token System.Threading.CancellationToken
progress IRenderProgress
return void