mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-07 02:52:50 +08:00
28 lines
506 B
C++
28 lines
506 B
C++
#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;
|
|
}
|
|
|