ImageFromHandle Method (IntPtr, ShareObject, UseMemoryPressure)

CVB.Net Documentation
Create a Image from a native handle and potentially increment the unmanaged reference count on the native handle.

Namespace:  Stemmer.Cvb
Assembly:  Stemmer.Cvb (in Stemmer.Cvb.dll) Version: 14.0.0.0
Syntax

public static Image FromHandle(
	IntPtr nativeHandle,
	ShareObject doShare,
	UseMemoryPressure useMemoryPressure
)

Parameters

nativeHandle
Type: SystemIntPtr
Handle to create the image from.
doShare
Type: Stemmer.Cvb.Runtime.InteropServicesShareObject
Yes if nativeHandle is to be shared.
useMemoryPressure
Type: Stemmer.Cvb.Runtime.InteropServicesUseMemoryPressure
Guesses memory pressure if Yes is set.

Return Value

Type: Image
Newly created image or null of no image could be created.
Remarks

Note that this function is not intended for general use. Providing invalid values on the nativeHandle parameter will most likely lead to severe problems in your application.

This function will guess the memory pressure of the native image passed via the nativeHandle if useMemoryPressure is set to Yes.

See Also

Reference