It´s same occurs in the past. FIA is OK.
Alexsander "Axia" Antunes
It´s same occurs in the past. FIA is OK.
Alexsander "Axia" Antunes
Hello all, I need to add a image (*.jpg) to a column of DataGrid. I populate this datagrid with databound from dataset and the last column I need to display an image (red, green, blue) How I do this? Thanks for all response,;) Alexsander "Axia" Antunes
My image is 300 of heigth and 260 of width. How value is for stride? 2080(260 * 8 bits) or 2400 (300 * 8 bits) :) But in 2 cases I have the following error: Additional information: Identification is not fixed. Alexsander "Axia" Antunes
My image is 300 of heigth and 260 of width. How value is for stride? 2080(260 * 8 bits) or 2400 (300 * 8 bits) :) Alexsander "Axia" Antunes
In the code below: Bitmap bmp = new Bitmap(300, 260, 2400, PixelFormat.Format24bppRgb, gch.AddrOfPinnedObject());
What is the third parameter (2400)? In th VS Documentation is the stride parameter, what is this? Thanks for all, :) Alexsander "Axia" Antunes
Where I have information about header of BMP images? Thanks for all help!:) Alexsander "Axia" Antunes
I have un array of byte[] below: byte[] img = new byte[78000] ... Recept raw data from a fingerprint scanner ...
This array contains the data of a image with 300 of height and 260 of width (total = 300 x 260 = 78000). Each position in the array (byte = 256) is a pixel (256 shades of gray). How I create the Image object with this data? Thanks for all response, :laugh: Alexsander "Axia" Antunes
OK! [DllImport("fplib.dll", EntryPoint="FPMGetImage", SetLastError=true, CharSet=CharSet.Ansi, ExactSpelling=true, CallingConvention=CallingConvention.StdCall)] public static extern int FPMGetImage([In, Out] byte[] buffer);
This code run perfectly! THANKS FOR ALL!! Matthew Hazlett wrote: I asked somthing like this the other day, heres what Heath Stewert told me: >Instead of passing byte* as the parameter, declare your parameter using either ref or out >for value types (like a Byte). This is the most common method. > >For instance, if the C functions is declared like so:void SomeFunc(byte* b); >...declare your method like so:[DllImport("...")]private static extern void SomeFunc(ref byte b); >Microsoft MVP, Visual C# >My Articles Matthew Hazlett Windows 2000/2003 MCSE Never got an MCSD, go figure... Alexsander "Axia" Antunes
Have you an example of API Windows with use BYTE*? Because I use API Viewer 2003 and I can compare the sintax. Alexsander "Axia" Antunes
I have a library FPLIB.DLL with have the following function: DLLEXPORT DWORD WINAPI FPMGetImage(BYTE* buffer); How I declare my access in C#? What is byte* ? [DllImport("fplib.dll", EntryPoint="FPMGetImage", SetLastError=true, CharSet=CharSet.Ansi, ExactSpelling=true, CallingConvention=CallingConvention.StdCall)] public static extern int FPMGetImage(:confused: buffer); Thanks for all help! Alexsander "Axia" Antunes
Cool! But I need an interface similar to "Api Viewer" of the Visual Basic 6.0. Any suggestions?:confused: Alexsander "Axia" Antunes
Hello all! I am a VB developer and I used API Viewer. I would like to know if Visual Studio .NET 2003 have a similar tool ?:confused: Thanks for all, Alexsander "Axia" Antunes