Hi,
I am using streatchblt() and SetStretchBltMode() functions of unmanaged code in C# for printing image. For doing that I am calling the external gdi32.dll (form windows folder) file.
I am new in doing this sort of platform invoke operation. Plz tell me if my software is run in any windows version ranges form windows 95 to vista or any upcoming version, will this be problematic?
[System.Runtime.InteropServices.DllImportAttribute("gdi32.dll")]
static extern bool StretchBlt(IntPtr hdcDest, int nXOriginDest, int nYOriginDest,int nWidthDest, int nHeightDest, IntPtr hdcSrc, int nXOriginSrc, int nYOriginSrc, int nWidthSrc, int nHeightSrc, Int32 dwRop);
[System.Runtime.InteropServices.DllImportAttribute("gdi32.dll")]
static extern bool SetStretchBltMode(IntPtr hdc, int iStretchMode);
>> I have tried to add this dll file as a reference in my code but failed to do so as this file is unaccessible.
Plz tell me if I have any alternative for doing the work of the above mensioned functions with managed code.
thanks in advance,
Faysal