#1
Posted
:
Friday, December 15, 2006 11:35:58 AM(UTC)
Groups: Registered
Posts: 1
I'm using the .NET 14.5 version of Leadtools. I've written an algorithm does the getpixelData() command many times in a loop. Is their any way for me to speed this up? The only other way I know of is to write unsafe code, but that tends to get quite messy.
Thanks
#2
Posted
:
Monday, December 18, 2006 8:59:22 AM(UTC)
Groups: Manager, Tech Support
Posts: 367
Was thanked: 1 time(s) in 1 post(s)
Ash,
You can use the RasterImage.GetRow Method to obtain one or more rows of the image data (even the full image in one shot) into a byte array.
Amin Dodin
Senior Support Engineer
LEAD Technologies, Inc.
#3
Posted
:
Tuesday, May 30, 2017 8:43:46 AM(UTC)
Groups: Administrators
Posts: 27
Was thanked: 1 time(s) in 1 post(s)
There is a blog post that covers different ways to access the image data.
Do it in the Buffer: Comparison of RasterImage Image Data Access Methods in .NETQuote:There are several ways to access the data in a RasterImage. If you need to get the RGB values of each pixel, then the GetPixel() and GetRow() methods are the simplest methods to use.
Few Pixels
If you need to get just one pixel, then GetPixel() is the easiest. GetPixel() works with image data of any
Read more... Gabriel Smith
LEAD Technologies, Inc.
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.