mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-07 18:40:52 +08:00
Refactor openalpr-net into separate files instead of having one huge file.
This commit is contained in:
27
src/bindings/csharp/openalpr-net/bitmapmat-net.cpp
Normal file
27
src/bindings/csharp/openalpr-net/bitmapmat-net.cpp
Normal file
@@ -0,0 +1,27 @@
|
||||
#include "stdafx.h"
|
||||
#include "bitmapmat-net.h"
|
||||
|
||||
using namespace openalprnet;
|
||||
|
||||
BitmapMat::BitmapMat(array<Byte>^ byteArray)
|
||||
{
|
||||
this->m_bitmap = ByteArrayToMat(byteArray);
|
||||
}
|
||||
|
||||
BitmapMat::BitmapMat(Bitmap^ bitmap)
|
||||
{
|
||||
this->m_bitmap = BitmapToMat(bitmap);
|
||||
}
|
||||
|
||||
BitmapMat::BitmapMat(MemoryStream^ memoryStream)
|
||||
{
|
||||
this->m_bitmap = MemoryStreamBitmapToMat(memoryStream);
|
||||
}
|
||||
|
||||
BitmapMat::BitmapMat(String^ filename)
|
||||
{
|
||||
Bitmap^ bitmap = gcnew Bitmap(filename);
|
||||
this->m_bitmap = BitmapToMat(bitmap);
|
||||
delete bitmap;
|
||||
}
|
||||
|
Reference in New Issue
Block a user