Click or drag to resize
Ab4d.SharpEngine logo

GpuImage Methods

The GpuImage type exposes the following members.

Methods
 NameDescription
Public methodCopyDataFromImage Returns a new RawImageData with data from this image (stored in GPU memory). When the image data cannot be retrieved, then null is returned.
Public methodCopyDataFromImage(Byte, Int64, Int32, Boolean) Copies data from image (stored in GPU memory) to the specified byte array. Returns true when data was copied, otherwise false is returned (when image cannot be copied from GPU memory).
Public methodCopyDataToImage(Byte) Copies the data from the specified byte array to this image.
Public methodCopyDataToImage(Byte, Boolean) Copies the data from the specified byte array to this image.
Public methodCopyDataToImage(Byte, ImageLayout, AccessFlags, PipelineStageFlags) Copies the data from the specified byte array to this image and set the layout of the image to the specified values.
Public methodCopyDataToImageMipMaps Copies the data from the array of byte array to the mip maps of this image.
Public methodDispose 
Protected methodDispose(Boolean) Dispose
(Overrides ComponentBaseDispose(Boolean))
Public methodGetCurrentImageLayoutAndFlags Gets the current image layout
Public methodStatic memberGetImageAspectFlags Returns the ImageAspectFlags for the specified format.
Public methodGetImageLayout Returns information about the layout of the image for the specified mip level.
Public methodGetImageRowStride Returns a row stride (number of bytes in one row of image data) of the image for the specified mip level.
Public methodGetMappedMemoryPtr Returns an IntPtr of the mapped memory. The IntPtr can be used to get the content of this image or to copy new content to that location. After using the memory call UnmapMemory method.
Public methodGetMappedMemoryPtr(Int64, Int64) Returns an IntPtr of the mapped memory with specified offset and size. The IntPtr can be used to get the content of this image or to copy new content to that location. After using the memory call UnmapMemory method.
Public methodGetMappedMemorySpan Returns a Span that can be used to get the content of this image or copy new content to that location. After using the memory call UnmapMemory method.
Public methodGetMappedMemorySpan(Void, Byte) 
Public methodResize Resizes this image
Public methodToString
(Overrides ObjectToString)
Public methodUnmapMemory Unmaps the memory that was mapped by calling GetMappedMemoryPtr.
Top
See Also