C# Class ComponentFactory.Krypton.Toolkit.RenderGlassHelpers

Helper functions for drawing in the glass styles.
Afficher le fichier Open project: ComponentFactory/Krypton

Méthodes publiques

Méthode Description
DrawBackGlassBottom ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, IDisposable memento ) : IDisposable

Draw a background with glass effect where the fade is from the bottom.

DrawBackGlassCenter ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, IDisposable memento ) : IDisposable

Draw a background with glass effect where the fade is from the center.

DrawBackGlassCheckedFull ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, IDisposable memento ) : IDisposable

Draw a background in checked full glass effect.

DrawBackGlassCheckedSimple ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, IDisposable memento ) : IDisposable

Draw a background in checked simple glass effect.

DrawBackGlassCheckedStump ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, IDisposable memento ) : IDisposable

Draw a background in checked stumpy glass effect.

DrawBackGlassCheckedTrackingFull ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, IDisposable memento ) : IDisposable

Draw a background in checked/tracking full glass effect.

DrawBackGlassCheckedTrackingSimple ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, IDisposable memento ) : IDisposable

Draw a background in checked/tracking simple glass effect.

DrawBackGlassCheckedTrackingStump ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, IDisposable memento ) : IDisposable

Draw a background in checked/tracking stumpy glass effect.

DrawBackGlassFade ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, IDisposable memento ) : IDisposable

Draw a background in normal full glass effect but only over 50% of the background.

DrawBackGlassNormalFull ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, IDisposable memento ) : IDisposable

Draw a background in normal full glass effect.

DrawBackGlassNormalSimple ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, IDisposable memento ) : IDisposable

Draw a background in normal simple glass effect.

DrawBackGlassNormalStump ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, IDisposable memento ) : IDisposable

Draw a background in normal stumpy glass effect.

DrawBackGlassPressedFull ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, IDisposable memento ) : IDisposable

Draw a background in checked/pressed full glass effect.

DrawBackGlassPressedSimple ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, IDisposable memento ) : IDisposable

Draw a background in checked/pressed simple glass effect.

DrawBackGlassPressedStump ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, IDisposable memento ) : IDisposable

Draw a background in checked/pressed stumpy glass effect.

DrawBackGlassSimpleFull ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, IDisposable memento ) : IDisposable

Draw a background in simple glass effect.

DrawBackGlassThreeEdge ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, IDisposable memento ) : IDisposable

Draw a background in glass effect with three edges lighter.

DrawBackGlassTrackingFull ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, IDisposable memento ) : IDisposable

Draw a background in tracking full glass effect.

DrawBackGlassTrackingSimple ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, IDisposable memento ) : IDisposable

Draw a background in tracking simple glass effect.

DrawBackGlassTrackingStump ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, IDisposable memento ) : IDisposable

Draw a background in tracking stumpy glass effect.

Private Methods

Méthode Description
AngleFromOrientation ( VisualOrientation orientation ) : float
DrawBackDarkEdge ( RectangleF drawRect, Color color1, int thickness, VisualOrientation orientation, Graphics g, IDisposable memento ) : IDisposable
DrawBackGlassBasic ( RectangleF drawRect, Color color1, Color color2, Color glassColor1, Color glassColor2, float factorX, float factorY, VisualOrientation orientation, Graphics g, float glassPercent, IDisposable &memento ) : RectangleF
DrawBackGlassCenter ( RectangleF drawRect, Color color1, Color color2, Color glassColor1, Color glassColor2, float factorX, float factorY, VisualOrientation orientation, Graphics g, float glassPercent, IDisposable memento ) : IDisposable
DrawBackGlassCheckedPercent ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, float glassPercent, IDisposable memento ) : IDisposable
DrawBackGlassCheckedTrackingPercent ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, float glassPercent, IDisposable memento ) : IDisposable
DrawBackGlassFade ( RectangleF drawRect, RectangleF outerRect, Color color1, Color color2, Color glassColor1, Color glassColor2, VisualOrientation orientation, Graphics g, IDisposable memento ) : IDisposable
DrawBackGlassLinear ( RectangleF drawRect, RectangleF outerRect, Color color1, Color color2, Color glassColor1, Color glassColor2, VisualOrientation orientation, Graphics g, float glassPercent, IDisposable memento ) : IDisposable
DrawBackGlassNormalPercent ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, float glassPercent, IDisposable memento ) : IDisposable
DrawBackGlassPressedPercent ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, float glassPercent, IDisposable memento ) : IDisposable
DrawBackGlassRadial ( RectangleF drawRect, Color color1, Color color2, Color glassColor1, Color glassColor2, float factorX, float factorY, VisualOrientation orientation, Graphics g, float glassPercent, IDisposable memento ) : IDisposable
DrawBackGlassSimplePercent ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, float glassPercent, IDisposable memento ) : IDisposable
DrawBackGlassTrackingPercent ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, float glassPercent, IDisposable memento ) : IDisposable
DrawBackLinear ( RectangleF drawRect, bool sigma, Color color1, Color color2, VisualOrientation orientation, Graphics g, IDisposable memento ) : IDisposable
DrawBackLinearRadial ( RectangleF drawRect, bool sigma, Color color1, Color color2, Color color3, VisualOrientation orientation, Graphics g, IDisposable memento ) : IDisposable
ModifyRectByEdges ( Rectangle &rect, int left, int top, int right, int bottom, VisualOrientation orientation ) : void
RenderGlassHelpers ( ) : System
VerticalOrientation ( VisualOrientation orientation ) : bool

Method Details

DrawBackGlassBottom() public static méthode

Draw a background with glass effect where the fade is from the bottom.
public static DrawBackGlassBottom ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, IDisposable memento ) : IDisposable
context RenderContext Rendering context.
rect System.Drawing.Rectangle Rectangle to draw.
backColor1 Color First color.
backColor2 Color Second color.
orientation VisualOrientation Drawing orientation.
path System.Drawing.Drawing2D.GraphicsPath Clipping path.
memento IDisposable Cache used for drawing.
Résultat IDisposable

DrawBackGlassCenter() public static méthode

Draw a background with glass effect where the fade is from the center.
public static DrawBackGlassCenter ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, IDisposable memento ) : IDisposable
context RenderContext Rendering context.
rect System.Drawing.Rectangle Rectangle to draw.
backColor1 Color First color.
backColor2 Color Second color.
orientation VisualOrientation Drawing orientation.
path System.Drawing.Drawing2D.GraphicsPath Clipping path.
memento IDisposable Cache used for drawing.
Résultat IDisposable

DrawBackGlassCheckedFull() public static méthode

Draw a background in checked full glass effect.
public static DrawBackGlassCheckedFull ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, IDisposable memento ) : IDisposable
context RenderContext Rendering context.
rect System.Drawing.Rectangle Rectangle to draw.
backColor1 Color First color.
backColor2 Color Second color.
orientation VisualOrientation Drawing orientation.
path System.Drawing.Drawing2D.GraphicsPath Clipping path.
memento IDisposable Cache used for drawing.
Résultat IDisposable

DrawBackGlassCheckedSimple() public static méthode

Draw a background in checked simple glass effect.
public static DrawBackGlassCheckedSimple ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, IDisposable memento ) : IDisposable
context RenderContext Rendering context.
rect System.Drawing.Rectangle Rectangle to draw.
backColor1 Color First color.
backColor2 Color Second color.
orientation VisualOrientation Drawing orientation.
path System.Drawing.Drawing2D.GraphicsPath Clipping path.
memento IDisposable Cache used for drawing.
Résultat IDisposable

DrawBackGlassCheckedStump() public static méthode

Draw a background in checked stumpy glass effect.
public static DrawBackGlassCheckedStump ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, IDisposable memento ) : IDisposable
context RenderContext Rendering context.
rect System.Drawing.Rectangle Rectangle to draw.
backColor1 Color First color.
backColor2 Color Second color.
orientation VisualOrientation Drawing orientation.
path System.Drawing.Drawing2D.GraphicsPath Clipping path.
memento IDisposable Cache used for drawing.
Résultat IDisposable

DrawBackGlassCheckedTrackingFull() public static méthode

Draw a background in checked/tracking full glass effect.
public static DrawBackGlassCheckedTrackingFull ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, IDisposable memento ) : IDisposable
context RenderContext Rendering context.
rect System.Drawing.Rectangle Rectangle to draw.
backColor1 Color First color.
backColor2 Color Second color.
orientation VisualOrientation Drawing orientation.
path System.Drawing.Drawing2D.GraphicsPath Clipping path.
memento IDisposable Cache used for drawing.
Résultat IDisposable

DrawBackGlassCheckedTrackingSimple() public static méthode

Draw a background in checked/tracking simple glass effect.
public static DrawBackGlassCheckedTrackingSimple ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, IDisposable memento ) : IDisposable
context RenderContext Rendering context.
rect System.Drawing.Rectangle Rectangle to draw.
backColor1 Color First color.
backColor2 Color Second color.
orientation VisualOrientation Drawing orientation.
path System.Drawing.Drawing2D.GraphicsPath Clipping path.
memento IDisposable Cache used for drawing.
Résultat IDisposable

DrawBackGlassCheckedTrackingStump() public static méthode

Draw a background in checked/tracking stumpy glass effect.
public static DrawBackGlassCheckedTrackingStump ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, IDisposable memento ) : IDisposable
context RenderContext Rendering context.
rect System.Drawing.Rectangle Rectangle to draw.
backColor1 Color First color.
backColor2 Color Second color.
orientation VisualOrientation Drawing orientation.
path System.Drawing.Drawing2D.GraphicsPath Clipping path.
memento IDisposable Cache used for drawing.
Résultat IDisposable

DrawBackGlassFade() public static méthode

Draw a background in normal full glass effect but only over 50% of the background.
public static DrawBackGlassFade ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, IDisposable memento ) : IDisposable
context RenderContext Rendering context.
rect System.Drawing.Rectangle Rectangle to draw.
backColor1 Color First color.
backColor2 Color Second color.
orientation VisualOrientation Drawing orientation.
path System.Drawing.Drawing2D.GraphicsPath Clipping path.
memento IDisposable Cache used for drawing.
Résultat IDisposable

DrawBackGlassNormalFull() public static méthode

Draw a background in normal full glass effect.
public static DrawBackGlassNormalFull ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, IDisposable memento ) : IDisposable
context RenderContext Rendering context.
rect System.Drawing.Rectangle Rectangle to draw.
backColor1 Color First color.
backColor2 Color Second color.
orientation VisualOrientation Drawing orientation.
path System.Drawing.Drawing2D.GraphicsPath Clipping path.
memento IDisposable Cache used for drawing.
Résultat IDisposable

DrawBackGlassNormalSimple() public static méthode

Draw a background in normal simple glass effect.
public static DrawBackGlassNormalSimple ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, IDisposable memento ) : IDisposable
context RenderContext Rendering context.
rect System.Drawing.Rectangle Rectangle to draw.
backColor1 Color First color.
backColor2 Color Second color.
orientation VisualOrientation Drawing orientation.
path System.Drawing.Drawing2D.GraphicsPath Clipping path.
memento IDisposable Cache used for drawing.
Résultat IDisposable

DrawBackGlassNormalStump() public static méthode

Draw a background in normal stumpy glass effect.
public static DrawBackGlassNormalStump ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, IDisposable memento ) : IDisposable
context RenderContext Rendering context.
rect System.Drawing.Rectangle Rectangle to draw.
backColor1 Color First color.
backColor2 Color Second color.
orientation VisualOrientation Drawing orientation.
path System.Drawing.Drawing2D.GraphicsPath Clipping path.
memento IDisposable Cache used for drawing.
Résultat IDisposable

DrawBackGlassPressedFull() public static méthode

Draw a background in checked/pressed full glass effect.
public static DrawBackGlassPressedFull ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, IDisposable memento ) : IDisposable
context RenderContext Rendering context.
rect System.Drawing.Rectangle Rectangle to draw.
backColor1 Color First color.
backColor2 Color Second color.
orientation VisualOrientation Drawing orientation.
path System.Drawing.Drawing2D.GraphicsPath Clipping path.
memento IDisposable Cache used for drawing.
Résultat IDisposable

DrawBackGlassPressedSimple() public static méthode

Draw a background in checked/pressed simple glass effect.
public static DrawBackGlassPressedSimple ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, IDisposable memento ) : IDisposable
context RenderContext Rendering context.
rect System.Drawing.Rectangle Rectangle to draw.
backColor1 Color First color.
backColor2 Color Second color.
orientation VisualOrientation Drawing orientation.
path System.Drawing.Drawing2D.GraphicsPath Clipping path.
memento IDisposable Cache used for drawing.
Résultat IDisposable

DrawBackGlassPressedStump() public static méthode

Draw a background in checked/pressed stumpy glass effect.
public static DrawBackGlassPressedStump ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, IDisposable memento ) : IDisposable
context RenderContext Rendering context.
rect System.Drawing.Rectangle Rectangle to draw.
backColor1 Color First color.
backColor2 Color Second color.
orientation VisualOrientation Drawing orientation.
path System.Drawing.Drawing2D.GraphicsPath Clipping path.
memento IDisposable Cache used for drawing.
Résultat IDisposable

DrawBackGlassSimpleFull() public static méthode

Draw a background in simple glass effect.
public static DrawBackGlassSimpleFull ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, IDisposable memento ) : IDisposable
context RenderContext Rendering context.
rect System.Drawing.Rectangle Rectangle to draw.
backColor1 Color First color.
backColor2 Color Second color.
orientation VisualOrientation Drawing orientation.
path System.Drawing.Drawing2D.GraphicsPath Clipping path.
memento IDisposable Cache used for drawing.
Résultat IDisposable

DrawBackGlassThreeEdge() public static méthode

Draw a background in glass effect with three edges lighter.
public static DrawBackGlassThreeEdge ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, IDisposable memento ) : IDisposable
context RenderContext Rendering context.
rect System.Drawing.Rectangle Rectangle to draw.
backColor1 Color First color.
backColor2 Color Second color.
orientation VisualOrientation Drawing orientation.
path System.Drawing.Drawing2D.GraphicsPath Clipping path.
memento IDisposable Cache used for drawing.
Résultat IDisposable

DrawBackGlassTrackingFull() public static méthode

Draw a background in tracking full glass effect.
public static DrawBackGlassTrackingFull ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, IDisposable memento ) : IDisposable
context RenderContext Rendering context.
rect System.Drawing.Rectangle Rectangle to draw.
backColor1 Color First color.
backColor2 Color Second color.
orientation VisualOrientation Drawing orientation.
path System.Drawing.Drawing2D.GraphicsPath Clipping path.
memento IDisposable Cache used for drawing.
Résultat IDisposable

DrawBackGlassTrackingSimple() public static méthode

Draw a background in tracking simple glass effect.
public static DrawBackGlassTrackingSimple ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, IDisposable memento ) : IDisposable
context RenderContext Rendering context.
rect System.Drawing.Rectangle Rectangle to draw.
backColor1 Color First color.
backColor2 Color Second color.
orientation VisualOrientation Drawing orientation.
path System.Drawing.Drawing2D.GraphicsPath Clipping path.
memento IDisposable Cache used for drawing.
Résultat IDisposable

DrawBackGlassTrackingStump() public static méthode

Draw a background in tracking stumpy glass effect.
public static DrawBackGlassTrackingStump ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, IDisposable memento ) : IDisposable
context RenderContext Rendering context.
rect System.Drawing.Rectangle Rectangle to draw.
backColor1 Color First color.
backColor2 Color Second color.
orientation VisualOrientation Drawing orientation.
path System.Drawing.Drawing2D.GraphicsPath Clipping path.
memento IDisposable Cache used for drawing.
Résultat IDisposable