C# Class Pinta.Core.Document

Afficher le fichier Open project: PintaProject/Pinta Class Usage Examples

Méthodes publiques

Свойство Type Description
PreviousSelection Pinta.Core.DocumentSelection

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
OnIsDirtyChanged ( ) : void
OnRenamed ( ) : void

Private Methods

Méthode Description
OnSelectionChanged ( ) : void
RaiseLayerPropertyChangedEvent ( object sender, PropertyChangedEventArgs e ) : void
RotateImage ( double angle ) : void

Rotates the image by the specified angle (in degrees)

ShowExpandCanvasDialog ( ) : ResponseType

Method Details

AddNewLayer() public méthode

public AddNewLayer ( string name ) : Pinta.Core.UserLayer
name string
Résultat Pinta.Core.UserLayer

ClampToImageSize() public méthode

public ClampToImageSize ( Gdk r ) : Gdk.Rectangle
r Gdk
Résultat Gdk.Rectangle

Clear() public méthode

public Clear ( ) : void
Résultat void

Close() public méthode

public Close ( ) : void
Résultat void

CreateClippedContext() public méthode

public CreateClippedContext ( ) : Context
Résultat Context

CreateClippedContext() public méthode

public CreateClippedContext ( bool antialias ) : Context
antialias bool
Résultat Context

CreateClippedToolContext() public méthode

public CreateClippedToolContext ( ) : Context
Résultat Context

CreateClippedToolContext() public méthode

public CreateClippedToolContext ( bool antialias ) : Context
antialias bool
Résultat Context

CreateLayer() public méthode

public CreateLayer ( ) : Pinta.Core.UserLayer
Résultat Pinta.Core.UserLayer

CreateLayer() public méthode

public CreateLayer ( int width, int height ) : Pinta.Core.UserLayer
width int
height int
Résultat Pinta.Core.UserLayer

CreateLayer() public méthode

public CreateLayer ( string name ) : Pinta.Core.UserLayer
name string
Résultat Pinta.Core.UserLayer

CreateLayer() public méthode

public CreateLayer ( string name, int width, int height ) : Pinta.Core.UserLayer
name string
width int
height int
Résultat Pinta.Core.UserLayer

CreateSelectionLayer() public méthode

public CreateSelectionLayer ( ) : void
Résultat void

CreateSelectionLayer() public méthode

public CreateSelectionLayer ( int width, int height ) : void
width int
height int
Résultat void

DeleteCurrentLayer() public méthode

public DeleteCurrentLayer ( ) : void
Résultat void

DeleteLayer() public méthode

public DeleteLayer ( int index, bool dispose ) : void
index int
dispose bool
Résultat void

DestroySelectionLayer() public méthode

public DestroySelectionLayer ( ) : void
Résultat void

Document() public méthode

public Document ( Gdk size ) : System
size Gdk
Résultat System

DuplicateCurrentLayer() public méthode

public DuplicateCurrentLayer ( ) : Pinta.Core.UserLayer
Résultat Pinta.Core.UserLayer

FinishSelection() public méthode

public FinishSelection ( ) : void
Résultat void

FlattenImage() public méthode

public FlattenImage ( ) : void
Résultat void

FlipImageHorizontal() public méthode

public FlipImageHorizontal ( ) : void
Résultat void

FlipImageVertical() public méthode

public FlipImageVertical ( ) : void
Résultat void

GetClippedLayer() public méthode

public GetClippedLayer ( int index ) : ImageSurface
index int
Résultat Cairo.ImageSurface

GetComputedPixel() public méthode

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
Résultat ColorBgra

GetFlattenedImage() public méthode

public GetFlattenedImage ( ) : ImageSurface
Résultat Cairo.ImageSurface

GetLayersToPaint() public méthode

public GetLayersToPaint ( bool include_tool_layer = true ) : List
include_tool_layer bool
Résultat List

GetSelectedBounds() public méthode

public GetSelectedBounds ( bool canvasOnly ) : Gdk.Rectangle
canvasOnly bool false for the whole selection, true for the part only on our canvas
Résultat Gdk.Rectangle

IndexOf() public méthode

public IndexOf ( Pinta.Core.UserLayer layer ) : int
layer Pinta.Core.UserLayer
Résultat int

Insert() public méthode

public Insert ( Pinta.Core.UserLayer layer, int index ) : void
layer Pinta.Core.UserLayer
index int
Résultat void

MergeCurrentLayerDown() public méthode

public MergeCurrentLayerDown ( ) : void
Résultat void

MoveCurrentLayerDown() public méthode

public MoveCurrentLayerDown ( ) : void
Résultat void

MoveCurrentLayerUp() public méthode

public MoveCurrentLayerUp ( ) : void
Résultat void

OnIsDirtyChanged() protected méthode

protected OnIsDirtyChanged ( ) : void
Résultat void

OnRenamed() protected méthode

protected OnRenamed ( ) : void
Résultat void

Paste() public méthode

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.
Résultat void

ResetSelectionPaths() public méthode

public ResetSelectionPaths ( ) : void
Résultat void

ResizeCanvas() public méthode

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). ///
Résultat void

ResizeImage() public méthode

public ResizeImage ( int width, int height ) : void
width int
height int
Résultat void

RotateImage180() public méthode

public RotateImage180 ( ) : void
Résultat void

RotateImageCCW() public méthode

public RotateImageCCW ( ) : void
Résultat void

RotateImageCW() public méthode

public RotateImageCW ( ) : void
Résultat void

Save() public méthode

public Save ( bool saveAs ) : bool
saveAs bool
Résultat bool

SetCurrentUserLayer() public méthode

public SetCurrentUserLayer ( Pinta.Core.UserLayer layer ) : void
layer Pinta.Core.UserLayer
Résultat void

SetCurrentUserLayer() public méthode

public SetCurrentUserLayer ( int i ) : void
i int
Résultat void

ShowClipboardEmptyDialog() public static méthode

public static ShowClipboardEmptyDialog ( ) : void
Résultat void

SignalSurfaceCloned() public méthode

Signal to the TextTool that an ImageSurface was cloned.
public SignalSurfaceCloned ( ) : void
Résultat void

Property Details

PreviousSelection public_oe property

public DocumentSelection,Pinta.Core PreviousSelection
Résultat Pinta.Core.DocumentSelection