C# 클래스 Pinta.ImageManipulation.ScaleFactor

Encapsulates functionality for zooming/scaling coordinates. Includes methods for Size[F]'s, Point[F]'s, Rectangle[F]'s, and various scalars
파일 보기 프로젝트 열기: PintaProject/Pinta.ImageManipulation 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
MaxValue ScaleFactor
MinValue ScaleFactor
OneToOne ScaleFactor

공개 메소드들

메소드 설명
Equals ( object obj ) : bool
FromDouble ( double scalar ) : ScaleFactor
GetHashCode ( ) : int
GetNextLarger ( ) : ScaleFactor

Rounds the current scaling factor up to the next power of two.

GetNextSmaller ( ) : ScaleFactor
Max ( ScaleFactor lhs, ScaleFactor rhs ) : ScaleFactor
Max ( int n1, int d1, int n2, int d2, ScaleFactor lastResort ) : ScaleFactor
Min ( ScaleFactor lhs, ScaleFactor rhs ) : ScaleFactor
Min ( int n1, int d1, int n2, int d2, ScaleFactor lastResort ) : ScaleFactor
ScaleFactor ( int numerator, int denominator ) : System
ScalePoint ( Point p ) : Point
ScalePoint ( PointD p ) : PointD
ScalePointJustX ( Point p ) : Point
ScalePointJustX ( PointD p ) : PointD
ScalePointJustY ( Point p ) : Point
ScalePointJustY ( PointD p ) : PointD
ScaleRectangle ( Rectangle rect ) : Rectangle
ScaleScalar ( double x ) : double
ScaleScalar ( float x ) : float
ScaleScalar ( int x ) : int
ScaleSize ( Size s ) : Size
UnscalePoint ( Point p ) : Point
UnscalePoint ( PointD p ) : PointD
UnscalePointJustX ( Point p ) : Point
UnscalePointJustX ( PointD p ) : PointD
UnscalePointJustY ( Point p ) : Point
UnscalePointJustY ( PointD p ) : PointD
UnscaleRectangle ( Rectangle rect ) : Rectangle
UnscaleScalar ( double x ) : double
UnscaleScalar ( float x ) : float
UnscaleScalar ( int x ) : int
UnscaleSize ( Size s ) : Size
UseIfValid ( int numerator, int denominator, ScaleFactor lastResort ) : ScaleFactor
operator ( ) : bool

비공개 메소드들

메소드 설명
Clamp ( ) : void
Reduce ( int numerator, int denominator ) : ScaleFactor

메소드 상세

Equals() 공개 메소드

public Equals ( object obj ) : bool
obj object
리턴 bool

FromDouble() 공개 정적인 메소드

public static FromDouble ( double scalar ) : ScaleFactor
scalar double
리턴 ScaleFactor

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int

GetNextLarger() 공개 메소드

Rounds the current scaling factor up to the next power of two.
public GetNextLarger ( ) : ScaleFactor
리턴 ScaleFactor

GetNextSmaller() 공개 메소드

public GetNextSmaller ( ) : ScaleFactor
리턴 ScaleFactor

Max() 공개 정적인 메소드

public static Max ( ScaleFactor lhs, ScaleFactor rhs ) : ScaleFactor
lhs ScaleFactor
rhs ScaleFactor
리턴 ScaleFactor

Max() 공개 정적인 메소드

public static Max ( int n1, int d1, int n2, int d2, ScaleFactor lastResort ) : ScaleFactor
n1 int
d1 int
n2 int
d2 int
lastResort ScaleFactor
리턴 ScaleFactor

Min() 공개 정적인 메소드

public static Min ( ScaleFactor lhs, ScaleFactor rhs ) : ScaleFactor
lhs ScaleFactor
rhs ScaleFactor
리턴 ScaleFactor

Min() 공개 정적인 메소드

public static Min ( int n1, int d1, int n2, int d2, ScaleFactor lastResort ) : ScaleFactor
n1 int
d1 int
n2 int
d2 int
lastResort ScaleFactor
리턴 ScaleFactor

ScaleFactor() 공개 메소드

public ScaleFactor ( int numerator, int denominator ) : System
numerator int
denominator int
리턴 System

ScalePoint() 공개 메소드

public ScalePoint ( Point p ) : Point
p Point
리턴 Point

ScalePoint() 공개 메소드

public ScalePoint ( PointD p ) : PointD
p PointD
리턴 PointD

ScalePointJustX() 공개 메소드

public ScalePointJustX ( Point p ) : Point
p Point
리턴 Point

ScalePointJustX() 공개 메소드

public ScalePointJustX ( PointD p ) : PointD
p PointD
리턴 PointD

ScalePointJustY() 공개 메소드

public ScalePointJustY ( Point p ) : Point
p Point
리턴 Point

ScalePointJustY() 공개 메소드

public ScalePointJustY ( PointD p ) : PointD
p PointD
리턴 PointD

ScaleRectangle() 공개 메소드

public ScaleRectangle ( Rectangle rect ) : Rectangle
rect Rectangle
리턴 Rectangle

ScaleScalar() 공개 메소드

public ScaleScalar ( double x ) : double
x double
리턴 double

ScaleScalar() 공개 메소드

public ScaleScalar ( float x ) : float
x float
리턴 float

ScaleScalar() 공개 메소드

public ScaleScalar ( int x ) : int
x int
리턴 int

ScaleSize() 공개 메소드

public ScaleSize ( Size s ) : Size
s Size
리턴 Size

UnscalePoint() 공개 메소드

public UnscalePoint ( Point p ) : Point
p Point
리턴 Point

UnscalePoint() 공개 메소드

public UnscalePoint ( PointD p ) : PointD
p PointD
리턴 PointD

UnscalePointJustX() 공개 메소드

public UnscalePointJustX ( Point p ) : Point
p Point
리턴 Point

UnscalePointJustX() 공개 메소드

public UnscalePointJustX ( PointD p ) : PointD
p PointD
리턴 PointD

UnscalePointJustY() 공개 메소드

public UnscalePointJustY ( Point p ) : Point
p Point
리턴 Point

UnscalePointJustY() 공개 메소드

public UnscalePointJustY ( PointD p ) : PointD
p PointD
리턴 PointD

UnscaleRectangle() 공개 메소드

public UnscaleRectangle ( Rectangle rect ) : Rectangle
rect Rectangle
리턴 Rectangle

UnscaleScalar() 공개 메소드

public UnscaleScalar ( double x ) : double
x double
리턴 double

UnscaleScalar() 공개 메소드

public UnscaleScalar ( float x ) : float
x float
리턴 float

UnscaleScalar() 공개 메소드

public UnscaleScalar ( int x ) : int
x int
리턴 int

UnscaleSize() 공개 메소드

public UnscaleSize ( Size s ) : Size
s Size
리턴 Size

UseIfValid() 공개 정적인 메소드

public static UseIfValid ( int numerator, int denominator, ScaleFactor lastResort ) : ScaleFactor
numerator int
denominator int
lastResort ScaleFactor
리턴 ScaleFactor

operator() 공개 정적인 메소드

public static operator ( ) : bool
리턴 bool

프로퍼티 상세

MaxValue 공개적으로 정적으로 프로퍼티

public static ScaleFactor,Pinta.ImageManipulation MaxValue
리턴 ScaleFactor

MinValue 공개적으로 정적으로 프로퍼티

public static ScaleFactor,Pinta.ImageManipulation MinValue
리턴 ScaleFactor

OneToOne 공개적으로 정적으로 프로퍼티

public static ScaleFactor,Pinta.ImageManipulation OneToOne
리턴 ScaleFactor