C# Класс Pinta.ImageManipulation.BaseEffect

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
FindLastCompletedLine ( bool lines, int start ) : int

Описание методов

OnBeginRender() защищенный Метод

protected OnBeginRender ( ISurface src, ISurface dst, Rectangle roi ) : void
src ISurface
dst ISurface
roi Rectangle
Результат void

Render() защищенный Метод

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.
Результат ColorBgra

Render() защищенный Метод

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.
Результат void

Render() публичный Метод

Render the effect on the specified surface.
public Render ( ISurface surface ) : void
surface ISurface Surface to use a the source and destination.
Результат void

Render() публичный Метод

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.
Результат void

Render() публичный Метод

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.
Результат void

Render() публичный Метод

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.
Результат void

RenderAsync() публичный Метод

public RenderAsync ( ISurface surface ) : Task
surface ISurface
Результат Task

RenderAsync() публичный Метод

public RenderAsync ( ISurface surface, CancellationToken token ) : Task
surface ISurface
token System.Threading.CancellationToken
Результат Task

RenderAsync() публичный Метод

public RenderAsync ( ISurface src, ISurface dst ) : Task
src ISurface
dst ISurface
Результат Task

RenderAsync() публичный Метод

public RenderAsync ( ISurface src, ISurface dst, CancellationToken token ) : Task
src ISurface
dst ISurface
token System.Threading.CancellationToken
Результат Task

RenderAsync() публичный Метод

public RenderAsync ( ISurface src, ISurface dst, Rectangle roi ) : Task
src ISurface
dst ISurface
roi Rectangle
Результат Task

RenderAsync() публичный Метод

public RenderAsync ( ISurface src, ISurface dst, Rectangle roi, CancellationToken token ) : Task
src ISurface
dst ISurface
roi Rectangle
token System.Threading.CancellationToken
Результат Task

RenderAsync() публичный Метод

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
Результат Task

RenderAsync() публичный Метод

public RenderAsync ( ISurface surface, Rectangle roi ) : Task
surface ISurface
roi Rectangle
Результат Task

RenderAsync() публичный Метод

public RenderAsync ( ISurface surface, Rectangle roi, CancellationToken token ) : Task
surface ISurface
roi Rectangle
token System.Threading.CancellationToken
Результат Task

RenderAsync() публичный Метод

public RenderAsync ( ISurface surface, Rectangle roi, CancellationToken token, IRenderProgress progress ) : Task
surface ISurface
roi Rectangle
token System.Threading.CancellationToken
progress IRenderProgress
Результат Task

RenderLine() защищенный Метод

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
Результат void

RenderLoop() защищенный Метод

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
Результат void

RenderLoop() защищенный Метод

protected RenderLoop ( ISurface surface, Rectangle roi, CancellationToken token, IRenderProgress progress ) : void
surface ISurface
roi Rectangle
token System.Threading.CancellationToken
progress IRenderProgress
Результат void