PDA

View Full Version : ImageBuffer.GetImageData Method unsafe for VB.NET?



sapbucket
October 25, 2004, 03:13:32
ImageBuffer.GetImageData Method is declared unsafe and cannot be used with VB.NET

http://www.imagingcontrol.com/ic/docs/html/dotnet/meth_descImageBuffer_GetImageData.htm

why not? It would be very useful.

Stefan Geissler
October 25, 2004, 10:13:25
Hello,

This is done unsafe, because you can perform pure pointer operations on it. Pointer operations are not realy well to handle in Visual Basic.
GetImageData() has been programmed unsafe, to allow fast image processing. "unsafe" is not available for Visual Basic .NET (see MSDN).