FANDOM


cCairoSurface Edit

This class manages all the features involved with cairo surfaces.

Methods Edit

  • Function AdjustColors(Brightness As Double, [Contrast As Double], [Gamma As Double = 1], [Invert As Boolean], [R As Boolean = True], [G As Boolean = True], [B As Boolean = True]) As cCairoSurface
  • Function BindToArray(B() As Byte) As Boolean
  • Function BindToArrayLong(L() As Long) As Boolean
  • Function CreateContext() As cCairoContext
  • Function CreateSimilar([Content As cairo_content_enm = CAIRO_CONTENT_COLOR_ALPHA], [Width As Long], [Height As Double], [CopyContent As Boolean]) As cCairoSurface
  • Function CreateSurfacePattern([Filter As cairo_filter_enm = CAIRO_FILTER_GOOD]) As cCairoPattern
  • Sub DrawToDC(HDc As Long, [X As Long], [y As Long], [dx As Long], [dy As Long], [xSrc As Long], [ySrc As Long], [dxSrc As Long], [dySrc As Long], [ROp As RasterOpConstants = vbSrcCopy], [HalfTone As Boolean], [KeepAspectRatio As Boolean])
  • Function EmitPDFPage([CopyContentToNextPage As Boolean], [NewDX As Double], [NewDY As Double]) As Long
  • Sub FastBlur([nTimes As Long = 1])
  • Function GaussianBlur([StdDev As Double = 2], [R As Long], [AlphaOnly As Boolean], [ReplaceColor As Long]) As cCairoSurface
  • Function GetColorLUT(Brightness As Double, Contrast As Double, Gamma As Double, Invert As Boolean) As Byte()
  • Function GetDC() As Long
  • Sub ReleaseArray(B() As Byte)
  • Sub ReleaseArrayLong(L() As Long)
  • Sub Sharpen()
  • Function WriteContentToJpgByteArray(B() As Byte, [QualityPercent As Long = 90], [WithAlpha As Boolean]) As Long
  • Function WriteContentToJpgFile(FileName As String, [QualityPercent As Long = 90], [WithAlpha As Boolean]) As Long
  • Function WriteContentToPDFByteArray(B() As Byte) As cairo_status_enm
  • Function WriteContentToPDFFile(FileName As String) As cairo_status_enm
  • Function WriteContentToPngByteArray(B() As Byte) As cairo_status_enm
  • Function WriteContentToPngFile(FileName As String) As cairo_status_enm
  • Function WriteContentToSVGByteArray(B() As Byte) As cairo_status_enm
  • Function WriteContentToSVGFile(FileName As String) As cairo_status_enm

Properties Edit

  • Property DataPtr As Long
  • Property FormatInfo As cairo_format_enm

    read-only

  • Property Height As Long

    read-only

  • Property Picture As StdPicture

    read-only

  • Property Stride As Long

    read-only

  • Property SurfaceType As cairo_surface_type_enm

    read-only

  • Property Width As Long

    read-only

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.