Board index » delphi » Is MSDN documentation really any better than BDS2006 Help?
James Gibbons
![]() Delphi Developer |
Is MSDN documentation really any better than BDS2006 Help?2007-03-19 01:00:28 AM delphi209 About a week ago, Verity Stob had this to say about MSDN help: Unhelpful Microsoft help denies helpless millions help www.regdeveloper.co.uk/2007/03/08/msdn_gloom/ I totally agree with Stob's analysis. I am pleased to hear first reports that Delphi 2007 help is much better than BDS2006, but I always thought MS help was fairly good. Turns out I may have had the wrong impression, thinking that volume made up for quality. As part of a .NET question, I have been looking for a way to get into the raw pixels in a .NET Bitmap object for some time. Bitmap has GetPixel and SetPixel but these are way to slow for image processing. What I wanted was a raw pointer to the image data similar to how TBitmap.ScanLine does it. I admit I didn't try very hard to find it because I'd be a fool to use .NET for image processing anyway. Then I found this discussion of .NET vs Native: discuss.joelonsoftware.com/default.asp?dotnet.12.463019.42 Someone threw up Paint.NET as an example of a fast C# image processing application. Well, in reality it is neither fast (3x slower than native in my tests on the Gaussian filter) nor safe (200 uses of the "unsafe" keyword, including in filters and it accepts third party plug-ins). It is not really a pure "sandbox" .NET application. My interest was in how they solved the raw image bit access problem. Well, it turns out that BitMap.LockBits.Scan0 gives access to the raw image bytes. Here is the description for BitMap.LockBits: "Specifies the attributes of a bitmap image. The BitmapData class is used by the LockBits and UnlockBits methods of the Bitmap class. Not inheritable." Nothing in the MSDN documents gives a clue that it also provides raw image access. Only if you drill down into the Scan0 documentation do you really find what is needed. In other words, you need to know what you are looking for before you can find it. A focused search for "bitmap raw pixel access" in MSDN doesn't help much either. It does return a slightly useful result for the Win32 version of Bitmap but that wasn't what I wanted. While MSDN has a lot of volume, I am starting to wonder if it is really all that useful. Volume only makes things harder to find. |