[]
ID2D1EffectContext
[Guid("3d9f916b-27dc-4ad7-b4f1-64945340f563")]
public class EffectContext : ComObject, IDisposable, IUnknown
Initializes a new instance of the EffectContext class.
public EffectContext(IntPtr nativePtr)
nativePtr
System.IntPtrThe native pointer.
Gets the DPI.
public Vector2 Dpi { get; }
HRESULT ID2D1EffectContext::CheckFeatureSupport([In] D2D1_FEATURE feature,[Out, Buffer] void* featureSupportData,[In] unsigned int featureSupportDataSize)
public HResult CheckFeatureSupport(Feature feature, IntPtr featureSupportData, int featureSupportDataSize)
feature
FeaturefeatureSupportData
System.IntPtrfeatureSupportDataSize
intCheck if this device is supporting a feature.
public bool CheckFeatureSupport(Feature feature)
feature
FeatureThe feature to check.
Returns true if this device supports this feature, otherwise false.
HRESULT ID2D1EffectContext::CreateBlendTransform([In] unsigned int numInputs,[In] const D2D1_BLEND_DESCRIPTION* blendDescription,[Out, Fast] ID2D1BlendTransform** transform)
public BlendTransform CreateBlendTransform(int numInputs, ref BlendDescription blendDescription)
numInputs
intblendDescription
BlendDescriptionHRESULT ID2D1EffectContext::CreateBorderTransform([In] D2D1_EXTEND_MODE extendModeX,[In] D2D1_EXTEND_MODE extendModeY,[Out, Fast] ID2D1BorderTransform** transform)
public BorderTransform CreateBorderTransform(ExtendMode extendModeX, ExtendMode extendModeY)
extendModeX
ExtendModeextendModeY
ExtendModeHRESULT ID2D1EffectContext::CreateBoundsAdjustmentTransform([In] const RECT* outputRectangle,[Out, Fast] ID2D1BoundsAdjustmentTransform** transform)
public BoundsAdjustmentTransform CreateBoundsAdjustmentTransform(RectL outputRectangle)
outputRectangle
RectLHRESULT ID2D1EffectContext::CreateColorContext([In] D2D1_COLOR_SPACE space,[In, Buffer, Optional] const unsigned char* profile,[In] unsigned int profileSize,[Out, Fast] ID2D1ColorContext** colorContext)
public ColorContext CreateColorContext(ColorSpace space, byte[] rofileRef, int profileSize)
space
ColorSpacerofileRef
byte[]profileSize
intHRESULT ID2D1EffectContext::CreateColorContextFromFilename([In] const wchar_t* filename,[Out, Fast] ID2D1ColorContext** colorContext)
public ColorContext CreateColorContextFromFilename(string filename)
filename
stringHRESULT ID2D1EffectContext::CreateColorContextFromWicColorContext([In] IWICColorContext* wicColorContext,[Out, Fast] ID2D1ColorContext** colorContext)
public ColorContext CreateColorContextFromWicColorContext(ColorContext wicColorContext)
wicColorContext
ColorContextHRESULT ID2D1EffectContext::CreateEffect([In] const GUID& effectId,[Out, Fast] ID2D1Effect** effect)
public void CreateEffect(Guid effectId, Effect effect)
effectId
System.Guideffect
EffectHRESULT ID2D1EffectContext::CreateEffect([In] const GUID& effectId,[Out, Fast] ID2D1Effect** effect)
public Effect CreateEffect(Guid effectId)
effectId
System.GuidHRESULT ID2D1EffectContext::CreateOffsetTransform([In] POINT offset,[Out, Fast] ID2D1OffsetTransform** transform)
public OffsetTransform CreateOffsetTransform(Point2L offset)
offset
Point2LHRESULT ID2D1EffectContext::CreateResourceTexture([In, Optional] const GUID* resourceId,[In] const void* resourceTextureProperties,[In, Buffer, Optional] const unsigned char* data,[In, Buffer, Optional] const unsigned int* strides,[In] unsigned int dataSize,[Out, Fast] ID2D1ResourceTexture** resourceTexture)
public ResourceTexture CreateResourceTexture(Guid? resourceId, IntPtr resourceTextureProperties, byte[] data, int[] strides, int dataSize)
resourceId
System.Guid?resourceTextureProperties
System.IntPtrdata
byte[]strides
int[]dataSize
intHRESULT ID2D1EffectContext::CreateTransformNodeFromEffect([In] ID2D1Effect* effect,[Out] ID2D1TransformNode** transformNode)
public ITransformNode CreateTransformNodeFromEffect(Effect effect)
effect
EffectHRESULT ID2D1EffectContext::CreateVertexBuffer([In] const D2D1_VERTEX_BUFFER_PROPERTIES* vertexBufferProperties,[In, Optional] const GUID* resourceId,[In, Optional] const void* customVertexBufferProperties,[Out, Fast] ID2D1VertexBuffer** buffer)
public VertexBuffer CreateVertexBuffer(VertexBufferProperties vertexBufferProperties, Guid? resourceId, IntPtr customVertexBufferProperties)
vertexBufferProperties
VertexBufferPropertiesresourceId
System.Guid?customVertexBufferProperties
System.IntPtrHRESULT ID2D1EffectContext::FindResourceTexture([In] const GUID* resourceId,[Out] ID2D1ResourceTexture** resourceTexture)
public ResourceTexture FindResourceTexture(Guid resourceId)
resourceId
System.GuidHRESULT ID2D1EffectContext::FindVertexBuffer([In] const GUID* resourceId,[Out] ID2D1VertexBuffer** buffer)
public VertexBuffer FindVertexBuffer(Guid resourceId)
resourceId
System.Guidvoid ID2D1EffectContext::GetDpi([Out] float* dpiX,[Out] float* dpiY)
public void GetDpi(out float dpiX, out float dpiY)
dpiX
floatdpiY
floatHRESULT ID2D1EffectContext::GetMaximumSupportedFeatureLevel([In, Buffer] const D3D_FEATURE_LEVEL* featureLevels,[In] unsigned int featureLevelsCount,[Out] D3D_FEATURE_LEVEL* maximumSupportedFeatureLevel)
public FeatureLevel GetMaximumSupportedFeatureLevel(FeatureLevel[] featureLevels, int featureLevelsCount)
featureLevels
FeatureLevel[]featureLevelsCount
intGets the maximum feature level supported by this instance.
public FeatureLevel GetMaximumSupportedFeatureLevel(FeatureLevel[] featureLevels)
featureLevels
FeatureLevel[]An array of feature levels
The maximum feature level selected from the array
BOOL ID2D1EffectContext::IsBufferPrecisionSupported([In] D2D1_BUFFER_PRECISION bufferPrecision)
public bool IsBufferPrecisionSupported(BufferPrecision bufferPrecision)
bufferPrecision
BufferPrecisionBOOL ID2D1EffectContext::IsShaderLoaded([In] const GUID& shaderId)
public bool IsShaderLoaded(Guid shaderId)
shaderId
System.GuidHRESULT ID2D1EffectContext::LoadComputeShader([In] const GUID& resourceId,[In, Buffer] const unsigned char* shaderBuffer,[In] unsigned int shaderBufferCount)
public void LoadComputeShader(Guid resourceId, byte[] shaderBuffer)
resourceId
System.GuidshaderBuffer
byte[]HRESULT ID2D1EffectContext::LoadPixelShader([In] const GUID& shaderId,[In, Buffer] const unsigned char* shaderBuffer,[In] unsigned int shaderBufferCount)
public void LoadPixelShader(Guid shaderId, byte[] shaderBuffer)
shaderId
System.GuidshaderBuffer
byte[]HRESULT ID2D1EffectContext::LoadVertexShader([In] const GUID& resourceId,[In, Buffer] const unsigned char* shaderBuffer,[In] unsigned int shaderBufferCount)
public void LoadVertexShader(Guid resourceId, byte[] shaderBuffer)
resourceId
System.GuidshaderBuffer
byte[]Performs an explicit conversion from System.IntPtr to EffectContext.
public static explicit operator EffectContext(IntPtr nativePointer)
nativePointer
System.IntPtr