Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Friday, December 15, 2006 11:35:58 AM(UTC)

Ash  
Ash

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
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Monday, December 18, 2006 8:59:22 AM(UTC)

Amin  
Amin

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.
LEAD Logo
 
#3 Posted : Tuesday, May 30, 2017 8:43:46 AM(UTC)
BonzoFestoon

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 .NET

Quote:
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.

LEAD Logo
 
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.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.069 seconds.