473,386 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

divide image region

Hi EveryOne,
Does some one knows a way or tool that knows how to divide image into
regions with c# so if the image is like a table style i will now the
positions of the columns?
i can read the pixlels colors but it will be very slow.
thanks

Nov 26 '07 #1
3 3358
Ruby,

Can you be a little more specific with what you are trying to do? What
do you mean if the image is like a "table style"? Are you trying to place
pieces of an image into a table?

What is the end result of what you are trying to do?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Ruby Nadler" <Ru********@discussions.microsoft.comwrote in message
news:48**********************************@microsof t.com...
Hi EveryOne,
Does some one knows a way or tool that knows how to divide image into
regions with c# so if the image is like a table style i will now the
positions of the columns?
i can read the pixlels colors but it will be very slow.
thanks

Nov 26 '07 #2
Hi Nicholas,
what i am trying to do is cut b&w image (like newspaper page) into columns
and rows according to its layout.
any idea?
thanks.

"Nicholas Paldino [.NET/C# MVP]" wrote:
Ruby,

Can you be a little more specific with what you are trying to do? What
do you mean if the image is like a "table style"? Are you trying to place
pieces of an image into a table?

What is the end result of what you are trying to do?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Ruby Nadler" <Ru********@discussions.microsoft.comwrote in message
news:48**********************************@microsof t.com...
Hi EveryOne,
Does some one knows a way or tool that knows how to divide image into
regions with c# so if the image is like a table style i will now the
positions of the columns?
i can read the pixlels colors but it will be very slow.
thanks


Nov 27 '07 #3
On Nov 27, 5:44 am, Ruby Nadler <RubyNad...@discussions.microsoft.com>
wrote:
Hi Nicholas,
what i am trying to do is cut b&w image (like newspaper page) into columns
and rows according to its layout.
any idea?
thanks.
AFAIK, you can manipulate images efficiently by using unsafe code
regions and pointer arithmetics. There is a simple example in C# 3.0
in a Nutshell which I remember:

unsafe void RedFilter(int[,] bitmap)
{
int length = bitmap.Length;
fixed (int* b= bitmap)
{
int* p = b;
for(int i = 0; i < length; i++)
*p++ &= 0xFF;
}
}

This kind of iteration over a bitmap avoids runtime index checking and
runtime type checking as you would have by accessing the bitmap via
[x,y]
hth,
-- Henon

my site: http://www.eqqon.com
Nov 27 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: delong | last post by:
Hi I am trying to display a large image on the form and make the form scrollable. My image is about 4200 x 7000 pixel. private void Form1_Paint(object sender,...
1
by: Dan | last post by:
I must develop a (C-sharp) winforms application which should display some relatively large (e.g. 2~5 MB JPEG each) photographic images together with a rich set of related information: the...
5
by: yxq | last post by:
Hello The icons with the alpha channel are supported in WindowsXP. If use the System.Drawing.Bitmap.ToBitmap on the icon handle(ico.ToBitmap), the alpha channel won't be preserved, resulting in an...
1
by: M West | last post by:
continuation of my previous post, thanks to all those that contributed with answers I am creating a control that will take an image and make parts of it transparent, this is done by creating and...
4
by: SStory | last post by:
I am trying very hard to take an image and fill a shape with part of it. The way I do it is get a rectangle for the basic shape, add to a region, make some other shapes and exclude form region....
2
by: Mark Denardo | last post by:
Hi, I need some expert GDI+ person to help me with my RoundOffImage Function: What I'm trying to do is take in an image, crop off the edges around an ellipse region I set up, and then return the...
2
by: JenavaS | last post by:
Hi all, I have a query: SELECT Data.Region, Data.Dept, Data.Year, Data.Month, Data.Week, Data.Elapsed, Data. AS WpComp, Data. AS CpComp, IIf(=53 And ="JAN,WK4",/2,) AS AdjLyComp,...
1
by: _kOws | last post by:
Hi, I'm writing a program that loads an image and then apply JPEG algorithm on it. I need to apply such algorithm only to a quarter of the image, possibly selecting which quarter. I don't...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.