#pragma once

typedef struct   canvasHANDLEstruct
{
    HBITMAP  bm;
    HDC      dc;
    int max_w;
    int max_h;
    int last_x;
    int last_y;
    myUInt orientation;

    myUInt DisableHalfTone;

    int stride;
    myUInt updateAllowed;
    myUInt updatepending;
    HPEN     originalPen;
    int penStyle;
    int penWidth;
    COLORREF penRGB;

    COLORREF brushRGB;
    UINT brushStyle;
    myUInt brushHatch;
    HBRUSH   originalBrush;

    HFONT    originalFont;

    unsigned char* data;
}  canvasStruct, canvasHANDLE;

canvasHANDLE* canvas_from_file_ipic(TCHAR* OlePathName);
canvasHANDLE* canvas_from_file_gdip(TCHAR* fileName);

