Пример #1
0
 internal Pix(IntPtr pointer)
     : base(pointer)
 {
     Width  = Leptonica5Pix.pixGetWidth(HandleRef);
     Height = Leptonica5Pix.pixGetHeight(HandleRef);
     Depth  = Leptonica5Pix.pixGetDepth(HandleRef);
 }
Пример #2
0
 internal Pix(string imageFilePath)
     : base(() => Leptonica5Pix.pixRead(imageFilePath))
 {
     Width  = Leptonica5Pix.pixGetWidth(HandleRef);
     Height = Leptonica5Pix.pixGetHeight(HandleRef);
     Depth  = Leptonica5Pix.pixGetDepth(HandleRef);
 }