Class SrImage
Inheritance
object
SrImage
Implements
IDisposable
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: SaigeVision.Net.V2.Models
Assembly: SaigeVision.Net.V2.dll
Syntax
public class SrImage : IDisposable
Constructors
View SourceSrImage(Bitmap, Uri)
Declaration
public SrImage(Bitmap bitmap, Uri uri = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Bitmap | bitmap | |
| Uri | uri |
SrImage(int, int, int, byte[])
Declaration
public SrImage(int width, int height, int channelSize, byte[] data)
Parameters
| Type | Name | Description |
|---|---|---|
| int | width | |
| int | height | |
| int | channelSize | |
| byte[] | data |
SrImage(int, int, int, IntPtr)
Declaration
public SrImage(int width, int height, int channelSize, IntPtr data)
Parameters
| Type | Name | Description |
|---|---|---|
| int | width | |
| int | height | |
| int | channelSize | |
| IntPtr | data |
SrImage(Stream)
Declaration
public SrImage(Stream stream)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | stream |
SrImage(string)
Declaration
public SrImage(string filePath)
Parameters
| Type | Name | Description |
|---|---|---|
| string | filePath |
Properties
View SourceChannel
채널 수
Declaration
public int Channel { get; }
Property Value
| Type | Description |
|---|---|
| int |
Flags
Channel, Depth 에 대한 정보
Declaration
public ImageTypeFlags Flags { get; }
Property Value
| Type | Description |
|---|---|
| ImageTypeFlags |
Height
세로 길이
Declaration
public int Height { get; }
Property Value
| Type | Description |
|---|---|
| int |
Uri
원본 이미지의 Uri
Declaration
public Uri Uri { get; }
Property Value
| Type | Description |
|---|---|
| Uri |
Remarks
File path를 통한 생성자를 통해 생성된 인스턴스만 값을 가질 수 있으며, 그외 생성자는 해당 값을 null로 표현합니다.
Width
가로 길이
Declaration
public int Width { get; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
View SourceDispose()
Declaration
public void Dispose()
~SrImage()
Declaration
protected ~SrImage()
Save(string)
이미지를 저장합니다.
Declaration
public void Save(string path)
Parameters
| Type | Name | Description |
|---|---|---|
| string | path | 저장할 파일 경로. |
ToBitmap()
Declaration
public Bitmap ToBitmap()
Returns
| Type | Description |
|---|---|
| Bitmap |
Operators
View Sourceimplicit operator Mat(SrImage)
Declaration
public static implicit operator Mat(SrImage image)
Parameters
| Type | Name | Description |
|---|---|---|
| SrImage | image |
Returns
| Type | Description |
|---|---|
| Mat |
implicit operator Bitmap(SrImage)
Declaration
public static implicit operator Bitmap(SrImage image)
Parameters
| Type | Name | Description |
|---|---|---|
| SrImage | image |
Returns
| Type | Description |
|---|---|
| Bitmap |
Implements
System.IDisposable