예제 #1
0
        private SKShader ToShader(bool isOpaque, SKData uniforms, SKShader[] children, SKMatrix *localMatrix)
        {
            var uniformsHandle = uniforms?.Handle ?? IntPtr.Zero;

            using var childrenHandles = Utils.RentHandlesArray(children, true);

            fixed(IntPtr *ch = childrenHandles)
            {
                return(SKShader.GetObject(SkiaApi.sk_runtimeeffect_make_shader(Handle, uniformsHandle, ch, (IntPtr)childrenHandles.Length, localMatrix, isOpaque)));
            }
        }
예제 #2
0
파일: SKBitmap.cs 프로젝트: ywscr/SkiaSharp
 public SKShader ToShader(SKShaderTileMode tmx, SKShaderTileMode tmy, SKMatrix localMatrix) =>
 SKShader.GetObject(SkiaApi.sk_bitmap_make_shader(Handle, tmx, tmy, &localMatrix));
예제 #3
0
파일: SKBitmap.cs 프로젝트: ywscr/SkiaSharp
 public SKShader ToShader(SKShaderTileMode tmx, SKShaderTileMode tmy) =>
 SKShader.GetObject(SkiaApi.sk_bitmap_make_shader(Handle, tmx, tmy, null));
예제 #4
0
 public SKShader ToShader(SKShaderTileMode tileX, SKShaderTileMode tileY, SKMatrix localMatrix) =>
 SKShader.GetObject(SkiaApi.sk_image_make_shader(Handle, tileX, tileY, &localMatrix));
예제 #5
0
 public SKShader ToShader(SKShaderTileMode tileX, SKShaderTileMode tileY) =>
 SKShader.GetObject(SkiaApi.sk_image_make_shader(Handle, tileX, tileY, null));
예제 #6
0
 public SKShader ToShader(SKShaderTileMode tmx, SKShaderTileMode tmy, SKMatrix localMatrix, SKRect tile) =>
 SKShader.GetObject(SkiaApi.sk_picture_make_shader(Handle, tmx, tmy, &localMatrix, &tile));