Hi, I have an image in memory as an RGB array, I need to make a fast copy of it?
I access the image in usafe mode using the following pointer byte* p = (byte*)(void*)pBuffer; I need another copy of the data so that I can create a new pointer to it and leave my origional data unaffected.
SELECT product.name AS Name, product.modelNo AS [Model No], product.[desc] AS Description, category.categoryName AS Category,
product.MRSP AS MSRP, product.retailPrice AS [Retail Price], product.[image] AS Img
FROM (category INNER JOIN
product ON category.categoryID = product.categoryID)
When this is being showed on my datagrid, the retail price and msrp is not in currency format. How do i make it either adding a $ sign infront OR having it to be 2 decimal place
This has nothing to do with your SQL query. You need to learn how to use the datagrid specifically how to format things. I suggest you find some beginner articles about using the DataGrid. I imagine there are some here on CodeProject. If you are trying to use the ASP.NET DataGrid you might also want to check out the DataGrid Girl's web site.
I have several high-res (600dpi) TIFF files. I need to stitch these files together into one new high-res (600dpi) TIFF file. I got it working with the standard resolution (96dpi) but i can't get it to work with 400 or 600 dpi. Any help would be welcome!
This is the code i have so far:
Bitmap bmp = new Bitmap((int)imagewidth, (int)imageheight, PixelFormat.Format24bppRgb);
Graphics g = Graphics.FromImage(bmp);
int startpoint = 0;
for (int x = 0; x < bands.Count; x++)
string file = bands[x].ToString();
Bitmap tmp = new Bitmap(file);
g.DrawImage(tmp, startpoint, 0, tmp.Width, tmp.Height);
startpoint = startpoint + tmp.Width;
I'm not sure. Vista has a newer GDI+ version that is not available for
any pre-Vista OSs. I can't find any documented maximum bitmap dimensions
Are you sure the system is able to get the 1GB chunk of memory needed for that
image? If so, does smaller dimensions work?
I would at least expect it to work with dimensions that fit in a 16 bit signed int,
Microsoft MVP - Visual C++
Last Visit: 31-Dec-99 19:00 Last Update: 19-Jan-21 8:48