Class ImageSource
[Guid("c9b664e5-74a1-4378-9ac2-eefc37a3f4d8")]
public class ImageSource : Image
- Inheritance
-
ImageSource
- Derived
- Inherited Members
Constructors
ImageSource(DeviceContext2, Surface[], int, ColorSpaceType, ImageSourceFromDxgiOptions)
Initializes a new instance of the ImageSource.
public ImageSource(DeviceContext2 context2, Surface[] surfaces, int surfaceCount, ColorSpaceType colorSpace, ImageSourceFromDxgiOptions options)
Parameters
context2
DeviceContext2surfaces
Surface[]surfaceCount
intcolorSpace
ColorSpaceTypeoptions
ImageSourceFromDxgiOptions
ImageSource(nint)
public ImageSource(nint nativePtr)
Parameters
nativePtr
nint
Methods
OfferResources()
Allows the operating system to free the video memory of resources by discarding their content.
public void OfferResources()
TryReclaimResources(out RawBool)
Restores access to resources that were previously offered by calling OfferResources.
public void TryReclaimResources(out RawBool resourcesDiscarded)
Parameters
resourcesDiscarded
RawBoolNo documentation.
Remarks
After you call OfferResources to offer one or more resources, you must call TryReclaimResources before you can use those resources again. You must check the value in the resourcesDiscarded to determine whether the resource?s content was discarded. If a resource?s content was discarded while it was offered, its current content is undefined. Therefore, you must overwrite the resource?s content before you use the resource.
Operators
explicit operator ImageSource(nint)
public static explicit operator ImageSource(nint nativePtr)
Parameters
nativePtr
nint