C# Class vimage.ImageViewer

ファイルを表示 Open project: Torrunt/vimage Class Usage Examples

Public Properties

Property Type Description
AlwaysOnTop bool
BackgroundsForImagesWithTransparency bool
CloseNextTick bool
Config Config
EXTENSIONS string[]
File string
FitToMonitorHeight bool
FitToMonitorWidth bool
FlippedX bool
FolderContents List
FolderPosition int
Image dynamic
SortImagesBy SortBy
SortImagesByDir SortDirection
Window SFML.Graphics.RenderWindow
ZOOM_MAX float
ZOOM_MIN float

Public Methods

Method Description
ChangeSortBy ( SortBy by ) : void
ChangeSortByDirection ( SortDirection dir ) : void
CopyAsImage ( ) : void
CopyFile ( ) : void
CurrentImageSize ( ) : Vector2u
DeleteFile ( ) : void
DoCustomAction ( string action ) : void
FlipImage ( ) : void
ForceAlwaysOnTop ( ) : void
ImageViewer ( string file ) : System
NextFrame ( ) : void
NextImage ( ) : void
OpenConfig ( ) : void
OpenDuplicateWindow ( ) : void
OpenFileAtLocation ( ) : void
PrevFrame ( ) : void
PrevImage ( ) : void
RandomImage ( ) : void
ReloadConfig ( ) : void
ResetImage ( ) : void
RotateImage ( int Rotation, bool aroundCenter = true, bool updateWindowSize = true ) : void
Smoothing ( ) : bool
ToggleAlwaysOnTop ( ) : void
ToggleAnimation ( ) : void
ToggleBackground ( ) : void
ToggleFitToMonitor ( int dimension ) : void
ToggleSmoothing ( ) : void
UnforceAlwaysOnTop ( ) : void

Turns Always On Top off if it was forced.

Private Methods

Method Description
ChangeImage ( string fileName ) : bool
ControlDown ( object code ) : void
ControlUp ( object code ) : void
GetFolderContents ( ) : void
LoadImage ( string fileName ) : bool
OnConfigChanged ( object source, FileSystemEventArgs e ) : void
OnKeyDown ( Object sender, SFML e ) : void
OnKeyUp ( Object sender, SFML e ) : void
OnMouseDown ( Object sender, MouseButtonEventArgs e ) : void
OnMouseMoved ( Object sender, MouseMoveEventArgs e ) : void
OnMouseUp ( Object sender, MouseButtonEventArgs e ) : void
OnMouseWheelScrolled ( Object sender, MouseWheelScrollEventArgs e ) : void
OnWindowClosed ( Object sender, EventArgs e ) : void
PreloadImage ( string fileName ) : bool

Loads an image into memory but doesn't set it as the displayed image.

PreloadNextImage ( ) : void
Redraw ( ) : void
Update ( ) : void

Sets Updated status and refreshes NextWindowPos.

Zoom ( float value, bool center = false ) : void

Method Details

ChangeSortBy() public method

public ChangeSortBy ( SortBy by ) : void
by SortBy
return void

ChangeSortByDirection() public method

public ChangeSortByDirection ( SortDirection dir ) : void
dir SortDirection
return void

CopyAsImage() public method

public CopyAsImage ( ) : void
return void

CopyFile() public method

public CopyFile ( ) : void
return void

CurrentImageSize() public method

public CurrentImageSize ( ) : Vector2u
return Vector2u

DeleteFile() public method

public DeleteFile ( ) : void
return void

DoCustomAction() public method

public DoCustomAction ( string action ) : void
action string
return void

FlipImage() public method

public FlipImage ( ) : void
return void

ForceAlwaysOnTop() public method

public ForceAlwaysOnTop ( ) : void
return void

ImageViewer() public method

public ImageViewer ( string file ) : System
file string
return System

NextFrame() public method

public NextFrame ( ) : void
return void

NextImage() public method

public NextImage ( ) : void
return void

OpenConfig() public method

public OpenConfig ( ) : void
return void

OpenDuplicateWindow() public method

public OpenDuplicateWindow ( ) : void
return void

OpenFileAtLocation() public method

public OpenFileAtLocation ( ) : void
return void

PrevFrame() public method

public PrevFrame ( ) : void
return void

PrevImage() public method

public PrevImage ( ) : void
return void

RandomImage() public method

public RandomImage ( ) : void
return void

ReloadConfig() public method

public ReloadConfig ( ) : void
return void

ResetImage() public method

public ResetImage ( ) : void
return void

RotateImage() public method

public RotateImage ( int Rotation, bool aroundCenter = true, bool updateWindowSize = true ) : void
Rotation int
aroundCenter bool
updateWindowSize bool
return void

Smoothing() public method

public Smoothing ( ) : bool
return bool

ToggleAlwaysOnTop() public method

public ToggleAlwaysOnTop ( ) : void
return void

ToggleAnimation() public method

public ToggleAnimation ( ) : void
return void

ToggleBackground() public method

public ToggleBackground ( ) : void
return void

ToggleFitToMonitor() public method

public ToggleFitToMonitor ( int dimension ) : void
dimension int
return void

ToggleSmoothing() public method

public ToggleSmoothing ( ) : void
return void

UnforceAlwaysOnTop() public method

Turns Always On Top off if it was forced.
public UnforceAlwaysOnTop ( ) : void
return void

Property Details

AlwaysOnTop public_oe property

public bool AlwaysOnTop
return bool

BackgroundsForImagesWithTransparency public_oe property

public bool BackgroundsForImagesWithTransparency
return bool

CloseNextTick public_oe property

public bool CloseNextTick
return bool

Config public_oe property

public Config,vimage Config
return Config

EXTENSIONS public_oe property

public string[] EXTENSIONS
return string[]

File public_oe property

public string File
return string

FitToMonitorHeight public_oe property

public bool FitToMonitorHeight
return bool

FitToMonitorWidth public_oe property

public bool FitToMonitorWidth
return bool

FlippedX public_oe property

public bool FlippedX
return bool

FolderContents public_oe property

public List FolderContents
return List

FolderPosition public_oe property

public int FolderPosition
return int

Image public_oe property

public dynamic Image
return dynamic

SortImagesBy public_oe property

public SortBy SortImagesBy
return SortBy

SortImagesByDir public_oe property

public SortDirection SortImagesByDir
return SortDirection

Window public_oe property

public RenderWindow,SFML.Graphics Window
return SFML.Graphics.RenderWindow

ZOOM_MAX public_oe property

public float ZOOM_MAX
return float

ZOOM_MIN public_oe property

public float ZOOM_MIN
return float