C# Класс Pinta.Core.Document

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

Открытые свойства

Свойство Тип Описание
PreviousSelection Pinta.Core.DocumentSelection

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

Метод Описание
AddNewLayer ( string name ) : Pinta.Core.UserLayer
ClampToImageSize ( Gdk r ) : Gdk.Rectangle
Clear ( ) : void
Close ( ) : void
CreateClippedContext ( ) : Context
CreateClippedContext ( bool antialias ) : Context
CreateClippedToolContext ( ) : Context
CreateClippedToolContext ( bool antialias ) : Context
CreateLayer ( ) : Pinta.Core.UserLayer
CreateLayer ( int width, int height ) : Pinta.Core.UserLayer
CreateLayer ( string name ) : Pinta.Core.UserLayer
CreateLayer ( string name, int width, int height ) : Pinta.Core.UserLayer
CreateSelectionLayer ( ) : void
CreateSelectionLayer ( int width, int height ) : void
DeleteCurrentLayer ( ) : void
DeleteLayer ( int index, bool dispose ) : void
DestroySelectionLayer ( ) : void
Document ( Gdk size ) : System
DuplicateCurrentLayer ( ) : Pinta.Core.UserLayer
FinishSelection ( ) : void
FlattenImage ( ) : void
FlipImageHorizontal ( ) : void
FlipImageVertical ( ) : void
GetClippedLayer ( int index ) : ImageSurface
GetComputedPixel ( int x, int y ) : ColorBgra

Gets the final pixel color for the given point, taking layers, opacity, and blend modes into account.

GetFlattenedImage ( ) : ImageSurface
GetLayersToPaint ( bool include_tool_layer = true ) : List
GetSelectedBounds ( bool canvasOnly ) : Gdk.Rectangle
IndexOf ( Pinta.Core.UserLayer layer ) : int
Insert ( Pinta.Core.UserLayer layer, int index ) : void
MergeCurrentLayerDown ( ) : void
MoveCurrentLayerDown ( ) : void
MoveCurrentLayerUp ( ) : void
Paste ( bool toNewLayer, int x, int y ) : void

Pastes an image from the clipboard.

ResetSelectionPaths ( ) : void
ResizeCanvas ( int width, int height, Anchor anchor, CompoundHistoryItem compoundAction ) : void

Resizes the canvas.

ResizeImage ( int width, int height ) : void
RotateImage180 ( ) : void
RotateImageCCW ( ) : void
RotateImageCW ( ) : void
Save ( bool saveAs ) : bool
SetCurrentUserLayer ( Pinta.Core.UserLayer layer ) : void
SetCurrentUserLayer ( int i ) : void
ShowClipboardEmptyDialog ( ) : void
SignalSurfaceCloned ( ) : void

Signal to the TextTool that an ImageSurface was cloned.

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

Метод Описание
OnIsDirtyChanged ( ) : void
OnRenamed ( ) : void

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

Метод Описание
OnSelectionChanged ( ) : void
RaiseLayerPropertyChangedEvent ( object sender, PropertyChangedEventArgs e ) : void
RotateImage ( double angle ) : void

Rotates the image by the specified angle (in degrees)

ShowExpandCanvasDialog ( ) : ResponseType

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

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

public AddNewLayer ( string name ) : Pinta.Core.UserLayer
name string
Результат Pinta.Core.UserLayer

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

public ClampToImageSize ( Gdk r ) : Gdk.Rectangle
r Gdk
Результат Gdk.Rectangle

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

public Clear ( ) : void
Результат void

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

public Close ( ) : void
Результат void

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

public CreateClippedContext ( ) : Context
Результат Context

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

public CreateClippedContext ( bool antialias ) : Context
antialias bool
Результат Context

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

public CreateClippedToolContext ( ) : Context
Результат Context

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

public CreateClippedToolContext ( bool antialias ) : Context
antialias bool
Результат Context

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

public CreateLayer ( ) : Pinta.Core.UserLayer
Результат Pinta.Core.UserLayer

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

public CreateLayer ( int width, int height ) : Pinta.Core.UserLayer
width int
height int
Результат Pinta.Core.UserLayer

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

public CreateLayer ( string name ) : Pinta.Core.UserLayer
name string
Результат Pinta.Core.UserLayer

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

public CreateLayer ( string name, int width, int height ) : Pinta.Core.UserLayer
name string
width int
height int
Результат Pinta.Core.UserLayer

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

public CreateSelectionLayer ( ) : void
Результат void

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

public CreateSelectionLayer ( int width, int height ) : void
width int
height int
Результат void

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

public DeleteCurrentLayer ( ) : void
Результат void

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

public DeleteLayer ( int index, bool dispose ) : void
index int
dispose bool
Результат void

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

public DestroySelectionLayer ( ) : void
Результат void

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

public Document ( Gdk size ) : System
size Gdk
Результат System

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

public DuplicateCurrentLayer ( ) : Pinta.Core.UserLayer
Результат Pinta.Core.UserLayer

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

public FinishSelection ( ) : void
Результат void

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

public FlattenImage ( ) : void
Результат void

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

public FlipImageHorizontal ( ) : void
Результат void

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

public FlipImageVertical ( ) : void
Результат void

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

public GetClippedLayer ( int index ) : ImageSurface
index int
Результат Cairo.ImageSurface

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

Gets the final pixel color for the given point, taking layers, opacity, and blend modes into account.
public GetComputedPixel ( int x, int y ) : ColorBgra
x int
y int
Результат ColorBgra

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

public GetFlattenedImage ( ) : ImageSurface
Результат Cairo.ImageSurface

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

public GetLayersToPaint ( bool include_tool_layer = true ) : List
include_tool_layer bool
Результат List

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

public GetSelectedBounds ( bool canvasOnly ) : Gdk.Rectangle
canvasOnly bool false for the whole selection, true for the part only on our canvas
Результат Gdk.Rectangle

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

public IndexOf ( Pinta.Core.UserLayer layer ) : int
layer Pinta.Core.UserLayer
Результат int

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

public Insert ( Pinta.Core.UserLayer layer, int index ) : void
layer Pinta.Core.UserLayer
index int
Результат void

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

public MergeCurrentLayerDown ( ) : void
Результат void

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

public MoveCurrentLayerDown ( ) : void
Результат void

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

public MoveCurrentLayerUp ( ) : void
Результат void

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

protected OnIsDirtyChanged ( ) : void
Результат void

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

protected OnRenamed ( ) : void
Результат void

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

Pastes an image from the clipboard.
public Paste ( bool toNewLayer, int x, int y ) : void
toNewLayer bool Set to TRUE to paste into a /// new layer. Otherwise, will paste to the current layer.
x int Optional. Location within image to paste to. /// Position will be adjusted if pasted image would hang /// over right or bottom edges of canvas.
y int Optional. Location within image to paste to. /// Position will be adjusted if pasted image would hang /// over right or bottom edges of canvas.
Результат void

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

public ResetSelectionPaths ( ) : void
Результат void

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

Resizes the canvas.
public ResizeCanvas ( int width, int height, Anchor anchor, CompoundHistoryItem compoundAction ) : void
width int The new width of the canvas.
height int The new height of the canvas.
anchor Anchor Direction in which to adjust the canvas
compoundAction CompoundHistoryItem /// Optionally, the history item for resizing the canvas can be added to /// a CompoundHistoryItem if it is part of a larger action (e.g. pasting an image). ///
Результат void

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

public ResizeImage ( int width, int height ) : void
width int
height int
Результат void

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

public RotateImage180 ( ) : void
Результат void

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

public RotateImageCCW ( ) : void
Результат void

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

public RotateImageCW ( ) : void
Результат void

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

public Save ( bool saveAs ) : bool
saveAs bool
Результат bool

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

public SetCurrentUserLayer ( Pinta.Core.UserLayer layer ) : void
layer Pinta.Core.UserLayer
Результат void

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

public SetCurrentUserLayer ( int i ) : void
i int
Результат void

ShowClipboardEmptyDialog() публичный статический Метод

public static ShowClipboardEmptyDialog ( ) : void
Результат void

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

Signal to the TextTool that an ImageSurface was cloned.
public SignalSurfaceCloned ( ) : void
Результат void

Описание свойств

PreviousSelection публичное свойство

public DocumentSelection,Pinta.Core PreviousSelection
Результат Pinta.Core.DocumentSelection