StreamExtensions Class
Contents
[
Hide
]Summary: Provides access to the creation of a MemoryStream or FileStream.
Module: aspose.imaging.extensions
Full Name: aspose.imaging.extensions.StreamExtensions
Constructors
Name | Description |
---|---|
StreamExtensions() | Initializes a new instance of the StreamExtensions class |
Methods
Name | Description |
---|---|
create_file_stream(path, file_mode) | Creates a FileStream. |
create_memory_stream() | Creates a MemoryStream. |
create_memory_stream_from_bytes(array) | Creates a MemoryStream with a given array inside. |
create_memory_stream_with_size(capacity) | Creates a MemoryStream with a given capacity. |
Constructor: StreamExtensions()
StreamExtensions()
Initializes a new instance of the StreamExtensions class
Method: create_file_stream(path, file_mode) [static]
create_file_stream(path, file_mode)
Creates a FileStream.
Parameters:
Parameter | Type | Description |
---|---|---|
path | string | The path. |
file_mode | FileMode | The file mode. |
Returns
Type | Description |
---|---|
_io.BufferedRandom | The FileStream instance. |
Method: create_memory_stream() [static]
create_memory_stream()
Creates a MemoryStream.
Returns
Type | Description |
---|---|
_io.BufferedRandom | The MemoryStream instance. |
Method: create_memory_stream_from_bytes(array) [static]
create_memory_stream_from_bytes(array)
Creates a MemoryStream with a given array inside.
Parameters:
Parameter | Type | Description |
---|---|---|
array | byte | The array for wrapping. |
Returns
Type | Description |
---|---|
_io.BufferedRandom | The MemoryStream instance. |
Method: create_memory_stream_with_size(capacity) [static]
create_memory_stream_with_size(capacity)
Creates a MemoryStream with a given capacity.
Parameters:
Parameter | Type | Description |
---|---|---|
capacity | int | The capacity. |
Returns
Type | Description |
---|---|
_io.BufferedRandom | The MemoryStream instance. |