• Articles
  • Api Documentation
Show / Hide Table of Contents
  • Goui
    • Color
    • Colors
    • Document
    • EventTarget
    • IGouiPlugin
    • JsonConvert
    • Message
    • Message.PropertyReference
    • MessageType
    • Node
    • Session
    • Style
    • TargetEventArgs
    • TargetEventHandler
    • TextNode
    • UI
    • UI.FileContent
    • UI.StyleSelectors
    • UIConfig
    • Utilities
    • WebAssemblySession
    • WebSocketSession
    • Window
  • Goui.AspNetCore
    • ElementResult
    • WebSocketHandler
  • Goui.AspNetCore.TagHelpers
    • GouiTagHelper
  • Goui.Forms
    • DisplayAlert
    • ElementChangedEventArgs<TElement>
    • EventTracker
    • EventTracker.NativeGestureRecognizer
    • ExportCellAttribute
    • ExportImageSourceHandlerAttribute
    • ExportRendererAttribute
    • GouiTheme
    • IVisualElementRenderer
    • LinkLabel
    • LinkView
    • LocalIsolatedStorageFile
    • Platform
    • PlatformEffect
    • PlatformRenderer
    • RendererPool
    • ResourcesProvider
    • VisualElementChangedEventArgs
    • VisualElementPackager
    • VisualElementRenderer<TElement>
    • VisualElementRendererFlags
    • VisualElementTracker
  • Goui.Forms.Cells
    • CellElement
    • CellRenderer
    • EntryCellElement
    • EntryCellRenderer
    • ImageCellElement
    • ImageCellRenderer
    • SwitchCellElement
    • SwitchCellRenderer
    • TextCellElement
    • TextCellRenderer
    • ViewCellElement
    • ViewCellRenderer
  • Goui.Forms.Extensions
    • ColorExtensions
    • ElementExtensions
    • FontExtensions
    • ListViewExtensions
  • Goui.Forms.Renderers
    • ActivityIndicatorRenderer
    • BoxRenderer
    • ButtonRenderer
    • DatePickerRenderer
    • DefaultRenderer
    • EditorRenderer
    • EntryRenderer
    • FileImageSourceHandler
    • FrameRenderer
    • IImageSourceHandler
    • ImageLoaderSourceHandler
    • ImageRenderer
    • LabelRenderer
    • LinkLabelRenderer
    • LinkViewRenderer
    • ListViewRenderer
    • NavigationPageRenderer
    • PickerRenderer
    • ProgressBarRenderer
    • ScrollViewRenderer
    • SearchBarRenderer
    • SliderRenderer
    • StreamImagesourceHandler
    • SwitchRenderer
    • SwitchRenderer.SwitchElement
    • TimePickerRenderer
    • ViewRenderer
    • ViewRenderer<TElement, TNativeElement>
    • WebViewRenderer
  • Goui.Html
    • Anchor
    • Body
    • Button
    • ButtonType
    • Canvas
    • CanvasRenderingContext2D
    • CompositeOperation
    • Div
    • Element
    • Form
    • FormControl
    • Heading
    • Iframe
    • Image
    • Input
    • InputType
    • Label
    • LineCap
    • LineJoin
    • List
    • ListItem
    • Option
    • Paragraph
    • Select
    • Span
    • TextArea
    • TextInput
  • Microsoft.AspNetCore.Builder
    • GouiMiddlewareExtensions
  • WebAssembly
    • Runtime
  • Xamarin.Forms
    • Forms
    • Forms.ViewInitializedEventArgs
    • PageExtensions

Class CanvasRenderingContext2D

Inheritance
System.Object
EventTarget
CanvasRenderingContext2D
Implements
System.ComponentModel.INotifyPropertyChanged
Inherited Members
EventTarget.Id
EventTarget.TagName
EventTarget.PropertyChanged
EventTarget.MessageSent
EventTarget.StateMessages
EventTarget.ToString()
EventTarget.GetElementById(String)
EventTarget.AddEventListener(String, TargetEventHandler)
EventTarget.RemoveEventListener(String, TargetEventHandler)
EventTarget.SetProperty<T>(T, T, String, String)
EventTarget.OnPropertyChanged(String)
EventTarget.IdPrefix
EventTarget.Send(Message)
EventTarget.Call(String, Object[])
EventTarget.SendSet(String, Object)
EventTarget.Receive(Message)
EventTarget.AddStateMessage(Message)
EventTarget.UpdateStateMessages(Action<List<Message>>)
EventTarget.SaveStateMessageIfNeeded(Message)
EventTarget.TriggerEvent(String)
EventTarget.TriggerEventFromMessage(Message)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Goui.Html
Assembly: Goui.dll
Syntax
public class CanvasRenderingContext2D : EventTarget, INotifyPropertyChanged

Constructors

| Improve this Doc View Source

CanvasRenderingContext2D()

Declaration
public CanvasRenderingContext2D()

Properties

| Improve this Doc View Source

FillStyle

Declaration
public object FillStyle { get; set; }
Property Value
Type Description
System.Object
| Improve this Doc View Source

Font

Declaration
public string Font { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

FontFamily

Declaration
public string FontFamily { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

FontSize

Declaration
public double FontSize { get; set; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

GlobalAlpha

Declaration
public double GlobalAlpha { get; set; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

GlobalCompositeOperation

Declaration
public CompositeOperation GlobalCompositeOperation { get; set; }
Property Value
Type Description
CompositeOperation
| Improve this Doc View Source

LineCap

Declaration
public LineCap LineCap { get; set; }
Property Value
Type Description
LineCap
| Improve this Doc View Source

LineJoin

Declaration
public LineJoin LineJoin { get; set; }
Property Value
Type Description
LineJoin
| Improve this Doc View Source

LineWidth

Declaration
public double LineWidth { get; set; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

StrokeStyle

Declaration
public object StrokeStyle { get; set; }
Property Value
Type Description
System.Object

Methods

| Improve this Doc View Source

Arc(Double, Double, Double, Double, Double, Boolean)

Declaration
public void Arc(double x, double y, double radius, double startAngle, double endAngle, bool counterclockwise)
Parameters
Type Name Description
System.Double x
System.Double y
System.Double radius
System.Double startAngle
System.Double endAngle
System.Boolean counterclockwise
| Improve this Doc View Source

ArcTo(Double, Double, Double, Double, Double)

Declaration
public void ArcTo(double x1, double y1, double x2, double y2, double radius)
Parameters
Type Name Description
System.Double x1
System.Double y1
System.Double x2
System.Double y2
System.Double radius
| Improve this Doc View Source

BeginPath()

Declaration
public void BeginPath()
| Improve this Doc View Source

BezierCurveTo(Double, Double, Double, Double, Double, Double)

Declaration
public void BezierCurveTo(double cp1x, double cp1y, double cp2x, double cp2y, double x, double y)
Parameters
Type Name Description
System.Double cp1x
System.Double cp1y
System.Double cp2x
System.Double cp2y
System.Double x
System.Double y
| Improve this Doc View Source

ClearRect(Double, Double, Double, Double)

Declaration
public void ClearRect(double x, double y, double w, double h)
Parameters
Type Name Description
System.Double x
System.Double y
System.Double w
System.Double h
| Improve this Doc View Source

Clip()

Declaration
public void Clip()
| Improve this Doc View Source

ClosePath()

Declaration
public void ClosePath()
| Improve this Doc View Source

Ellipse(Double, Double, Double, Double, Double, Double, Double, Boolean)

Declaration
public void Ellipse(double x, double y, double radiusX, double radiusY, double rotation, double startAngle, double endAngle, bool counterclockwise = false)
Parameters
Type Name Description
System.Double x
System.Double y
System.Double radiusX
System.Double radiusY
System.Double rotation
System.Double startAngle
System.Double endAngle
System.Boolean counterclockwise
| Improve this Doc View Source

Fill()

Declaration
public void Fill()
| Improve this Doc View Source

FillRect(Double, Double, Double, Double)

Declaration
public void FillRect(double x, double y, double w, double h)
Parameters
Type Name Description
System.Double x
System.Double y
System.Double w
System.Double h
| Improve this Doc View Source

FillText(String, Double, Double, Nullable<Double>)

Declaration
public void FillText(string text, double x, double y, double? maxWidth)
Parameters
Type Name Description
System.String text
System.Double x
System.Double y
System.Nullable<System.Double> maxWidth
| Improve this Doc View Source

LineTo(Double, Double)

Declaration
public void LineTo(double x, double y)
Parameters
Type Name Description
System.Double x
System.Double y
| Improve this Doc View Source

MoveTo(Double, Double)

Declaration
public void MoveTo(double x, double y)
Parameters
Type Name Description
System.Double x
System.Double y
| Improve this Doc View Source

QuadraticCurveTo(Double, Double, Double, Double)

Declaration
public void QuadraticCurveTo(double cpx, double cpy, double x, double y)
Parameters
Type Name Description
System.Double cpx
System.Double cpy
System.Double x
System.Double y
| Improve this Doc View Source

Rect(Double, Double, Double, Double)

Declaration
public void Rect(double x, double y, double w, double h)
Parameters
Type Name Description
System.Double x
System.Double y
System.Double w
System.Double h
| Improve this Doc View Source

ResetTransform()

Declaration
public void ResetTransform()
| Improve this Doc View Source

Restore()

Declaration
public void Restore()
| Improve this Doc View Source

Rotate(Double)

Declaration
public void Rotate(double radians)
Parameters
Type Name Description
System.Double radians
| Improve this Doc View Source

Save()

Declaration
public void Save()
| Improve this Doc View Source

Scale(Double, Double)

Declaration
public void Scale(double x, double y)
Parameters
Type Name Description
System.Double x
System.Double y
| Improve this Doc View Source

SetTransform(Double, Double, Double, Double, Double, Double)

Declaration
public void SetTransform(double a, double b, double c, double d, double e, double f)
Parameters
Type Name Description
System.Double a
System.Double b
System.Double c
System.Double d
System.Double e
System.Double f
| Improve this Doc View Source

Stroke()

Declaration
public void Stroke()
| Improve this Doc View Source

StrokeRect(Double, Double, Double, Double)

Declaration
public void StrokeRect(double x, double y, double w, double h)
Parameters
Type Name Description
System.Double x
System.Double y
System.Double w
System.Double h
| Improve this Doc View Source

StrokeText(String, Double, Double, Nullable<Double>)

Declaration
public void StrokeText(string text, double x, double y, double? maxWidth)
Parameters
Type Name Description
System.String text
System.Double x
System.Double y
System.Nullable<System.Double> maxWidth
| Improve this Doc View Source

Translate(Double, Double)

Declaration
public void Translate(double x, double y)
Parameters
Type Name Description
System.Double x
System.Double y

Implements

System.ComponentModel.INotifyPropertyChanged
  • Improve this Doc
  • View Source
Back to top Generated by DocFX