#1
Posted
:
Monday, February 28, 2011 11:50:00 PM(UTC)
Groups: Registered
Posts: 33
hi i am using (.NET Class Libraries\.NET Framework\01 Imaging\01 Main Demo ) main demo as a base project to build a my own viewer and in effect i have to add my own filter .
1) how do i get pixel value(whole buffer ) so that i can perform what all pixel manupliacation and then again re-store buffer to its orignal position
for example i have one filter implementation i have made one functon .
now how to fill filter buffer data and all
example function :
void examle_filter(float I, int Ydimension, int Xdimension, int lengthH, float Output)
{
//This filter requires following inputs:
I--> Input image (or buffer which carry pixel)
sizeI--> (1 X 2)pointer array having input image dimensions.(size of bufer )
J--> Output image (or buffer )
can u please suggest me with simple example
how to get imagepixel buffer and manupilate image pixel and replace to orignal pixel buffer .
thank you
samit
#2
Posted
:
Tuesday, March 1, 2011 6:59:44 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
Samit,
I am not sure I fully understand your requirements. Do you mean that you want to obtain the pixels of the image into a byte array or memory buffer?
If yes, you can do that using the RasterImage.GetRow method.
This method can get the pixel data of the full image (all rows together) in one function call if you give it a buffer big enough to hold the full data.
If this is not what you need, please give me more details about it.
#3
Posted
:
Wednesday, March 2, 2011 9:04:32 PM(UTC)
Groups: Registered
Posts: 33
ya wanted some thing like this thank you
and can we use ur sample demo project and sample example files. then do changes and use in our own project and use it for comercial application .
thanks samit
#4
Posted
:
Thursday, March 3, 2011 9:47:07 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
Samit,
Yes, you can obtain a copy of the pixels using RasterImage.GetRow(), and when you finish with them, you can put them back into the image using RasterImage.SetRow().
About demos code, as a toolkit owner, you can copy from our demos and help file code samples and include that code into your own project without any problems.
#5
Posted
:
Thursday, March 3, 2011 7:48:17 PM(UTC)
Groups: Registered
Posts: 33
#6
Posted
:
Tuesday, May 30, 2017 8:40:55 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.
![LEAD Logo LEAD Logo](https://www.leadtools.com/images/new-site-images/leadtools-logo-header.png)
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.