C# Class PixbufUtils, f-spot

显示文件 Open project: mono/f-spot Class Usage Examples

Public Properties

Property Type Description
LoadingPixbuf Pixbuf

Public Methods

Method Description
Blur ( Pixbuf src, int radius, FSpot.UI.Dialog.ThreadProgressDialog dialog ) : Pixbuf
Clone ( this surf ) : ImageSurface
ColorAdjust ( Pixbuf src, double brightness, double contrast, double hue, double saturation, int src_color, int dest_color ) : Pixbuf
ColorAdjust ( Gdk src, Gdk dest, Transform trans ) : void
ColorAdjust ( Pixbuf src, Pixbuf dest, double brightness, double contrast, double hue, double saturation, int src_color, int dest_color ) : void
CreateDerivedVersion ( SafeUri source, SafeUri destination ) : void
CreateDerivedVersion ( SafeUri source, SafeUri destination, uint jpeg_quality ) : void
CreateDerivedVersion ( SafeUri source, SafeUri destination, uint jpeg_quality, Pixbuf pixbuf ) : void
Fit ( Pixbuf pixbuf, int dest_width, int dest_height, bool upscale_smaller, int &fit_width, int &fit_height ) : double
Fit ( int orig_width, int orig_height, int dest_width, int dest_height, bool upscale_smaller, int &fit_width, int &fit_height ) : double
Flatten ( Pixbuf pixbuf ) : Pixbuf
GetOrientation ( SafeUri uri ) : ImageOrientation,
IconFromPixbuf ( Pixbuf source, int size ) : Pixbuf
IsGray ( Gdk pixbuf, int max_difference ) : bool
LoadAtMaxSize ( string path, int max_width, int max_height ) : Pixbuf
PixbufCmsFormat ( Pixbuf buf ) : FSpot.Cms.Format
Pixbuf_GetRow ( byte pixels, int row, int rowstride, int width, int channels, byte dest ) : byte[]
Pixbuf_SetRow ( byte pixels, byte dest, int row, int rowstride, int width, int channels ) : void
RemoveRedeye ( Gdk src, Gdk area ) : Gdk.Pixbuf
RemoveRedeye ( Gdk src, Gdk area, int threshold ) : Gdk.Pixbuf
ReplaceColor ( Gdk src, Gdk dest ) : void
ScaleToAspect ( Gdk orig, int width, int height ) : Gdk.Pixbuf
TagIconFromPixbuf ( Pixbuf source ) : Pixbuf
UnsharpMask ( Pixbuf src, double radius, double amount, double threshold, FSpot.UI.Dialog.ThreadProgressDialog progressDialog ) : Pixbuf

Private Methods

Method Description
LoadFromAssembly ( string resource ) : Pixbuf
Save ( this pixbuf, string filename, string type, uint jpeg_quality ) : bool
SaveToSuitableFormat ( SafeUri destination, Pixbuf pixbuf, uint jpeg_quality ) : void
gdk_pixbuf_save ( IntPtr raw, IntPtr filename, IntPtr type, IntPtr &error, IntPtr optlabel1, IntPtr optvalue1, IntPtr dummy ) : bool

Method Details

Blur() public static method

public static Blur ( Pixbuf src, int radius, FSpot.UI.Dialog.ThreadProgressDialog dialog ) : Pixbuf
src Pixbuf
radius int
dialog FSpot.UI.Dialog.ThreadProgressDialog
return Pixbuf

Clone() public static method

public static Clone ( this surf ) : ImageSurface
surf this
return Cairo.ImageSurface

ColorAdjust() public static method

public static ColorAdjust ( Pixbuf src, double brightness, double contrast, double hue, double saturation, int src_color, int dest_color ) : Pixbuf
src Pixbuf
brightness double
contrast double
hue double
saturation double
src_color int
dest_color int
return Pixbuf

ColorAdjust() public static method

public static ColorAdjust ( Gdk src, Gdk dest, Transform trans ) : void
src Gdk
dest Gdk
trans Transform
return void

ColorAdjust() public static method

public static ColorAdjust ( Pixbuf src, Pixbuf dest, double brightness, double contrast, double hue, double saturation, int src_color, int dest_color ) : void
src Pixbuf
dest Pixbuf
brightness double
contrast double
hue double
saturation double
src_color int
dest_color int
return void

CreateDerivedVersion() public static method

public static CreateDerivedVersion ( SafeUri source, SafeUri destination ) : void
source Hyena.SafeUri
destination Hyena.SafeUri
return void

CreateDerivedVersion() public static method

public static CreateDerivedVersion ( SafeUri source, SafeUri destination, uint jpeg_quality ) : void
source Hyena.SafeUri
destination Hyena.SafeUri
jpeg_quality uint
return void

CreateDerivedVersion() public static method

public static CreateDerivedVersion ( SafeUri source, SafeUri destination, uint jpeg_quality, Pixbuf pixbuf ) : void
source Hyena.SafeUri
destination Hyena.SafeUri
jpeg_quality uint
pixbuf Pixbuf
return void

Fit() public static method

public static Fit ( Pixbuf pixbuf, int dest_width, int dest_height, bool upscale_smaller, int &fit_width, int &fit_height ) : double
pixbuf Pixbuf
dest_width int
dest_height int
upscale_smaller bool
fit_width int
fit_height int
return double

Fit() public static method

public static Fit ( int orig_width, int orig_height, int dest_width, int dest_height, bool upscale_smaller, int &fit_width, int &fit_height ) : double
orig_width int
orig_height int
dest_width int
dest_height int
upscale_smaller bool
fit_width int
fit_height int
return double

Flatten() public static method

public static Flatten ( Pixbuf pixbuf ) : Pixbuf
pixbuf Pixbuf
return Pixbuf

GetOrientation() public static method

public static GetOrientation ( SafeUri uri ) : ImageOrientation,
uri Hyena.SafeUri
return ImageOrientation,

IconFromPixbuf() public static method

public static IconFromPixbuf ( Pixbuf source, int size ) : Pixbuf
source Pixbuf
size int
return Pixbuf

IsGray() public static method

public static IsGray ( Gdk pixbuf, int max_difference ) : bool
pixbuf Gdk
max_difference int
return bool

LoadAtMaxSize() static public method

static public LoadAtMaxSize ( string path, int max_width, int max_height ) : Pixbuf
path string
max_width int
max_height int
return Pixbuf

PixbufCmsFormat() public static method

public static PixbufCmsFormat ( Pixbuf buf ) : FSpot.Cms.Format
buf Pixbuf
return FSpot.Cms.Format

Pixbuf_GetRow() public static method

public static Pixbuf_GetRow ( byte pixels, int row, int rowstride, int width, int channels, byte dest ) : byte[]
pixels byte
row int
rowstride int
width int
channels int
dest byte
return byte[]

Pixbuf_SetRow() public static method

public static Pixbuf_SetRow ( byte pixels, byte dest, int row, int rowstride, int width, int channels ) : void
pixels byte
dest byte
row int
rowstride int
width int
channels int
return void

RemoveRedeye() public static method

public static RemoveRedeye ( Gdk src, Gdk area ) : Gdk.Pixbuf
src Gdk
area Gdk
return Gdk.Pixbuf

RemoveRedeye() public static method

public static RemoveRedeye ( Gdk src, Gdk area, int threshold ) : Gdk.Pixbuf
src Gdk
area Gdk
threshold int
return Gdk.Pixbuf

ReplaceColor() public static method

public static ReplaceColor ( Gdk src, Gdk dest ) : void
src Gdk
dest Gdk
return void

ScaleToAspect() public static method

public static ScaleToAspect ( Gdk orig, int width, int height ) : Gdk.Pixbuf
orig Gdk
width int
height int
return Gdk.Pixbuf

TagIconFromPixbuf() public static method

public static TagIconFromPixbuf ( Pixbuf source ) : Pixbuf
source Pixbuf
return Pixbuf

UnsharpMask() public static method

public static UnsharpMask ( Pixbuf src, double radius, double amount, double threshold, FSpot.UI.Dialog.ThreadProgressDialog progressDialog ) : Pixbuf
src Pixbuf
radius double
amount double
threshold double
progressDialog FSpot.UI.Dialog.ThreadProgressDialog
return Pixbuf

Property Details

LoadingPixbuf public_oe static_oe property

public static Pixbuf LoadingPixbuf
return Pixbuf