C# 클래스 Pinta.Core.Document

파일 보기 프로젝트 열기: PintaProject/Pinta 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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