15,895,606 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by ready to learn (Top 58 by date)
ready to learn
18-May-12 2:10am
View
MsChart
ready to learn
9-Mar-12 11:20am
View
Thanks.Sorry to ask:
Is this sample written in c#?If not,How can I write it in c#?
You wrote it changes both x_axis and y_axis.How can I change only x_axis?
ready to learn
2-Mar-12 0:39am
View
thanks.I'm so sorry that I coudn't find such a simple property
ready to learn
2-Mar-12 0:22am
View
I'm using vs2008
ready to learn
29-Feb-12 15:35pm
View
great.That's exactly wat I wanted.
ready to learn
29-Feb-12 13:51pm
View
What about creating list of list of list? and how can I access to a special element?
ready to learn
28-Feb-12 10:11am
View
thanks it's good.I think I didn't ask well.If I have the point(4,5)=6 , I want the 4 and the 5 to be shown on the lines of the chart, not the 6.
ready to learn
28-Feb-12 9:46am
View
I only ment that I want to see the values on chart
ready to learn
25-Feb-12 8:09am
View
Thanks a lot, It works well. But I need to access the control int the class body , not in it's function.Is there a way to do it?
ready to learn
10-Feb-12 13:10pm
View
Thanks a lot again
ready to learn
10-Feb-12 13:01pm
View
Thaks a lot it worked well.What if I don't know the installation path.suppose that I want to instal my project on another computer.Then How can I set the path?
ready to learn
10-Feb-12 12:55pm
View
I tested it .by using this method only a window opens which I can select the console project from.Then the console projects opens in vs window. I want the console project to run in a black screen.
ready to learn
15-Jan-12 7:33am
View
Thanks for your answer.I updated the question.
ready to learn
19-Dec-11 10:24am
View
Manfred R. Bihy,I have visited these sites buit I don't know how to write the codes.What I sent was N nswer to Richard MacCutchan.
ready to learn
18-Dec-11 9:50am
View
Thanks a lot for your patience and step by step answer.this code runs well but when custom opens the backimage nothing apears ,unless he moves the mouse on the panel.when moving the mouse without clicking ,it draws the backimage.when custom opens the front image the front image is shown and when moving the mouse(without clicking) it draw the back image.Second problem is that the front image is shown streched (the backimage and the front image are the same size).I should again say that I'm so thankfull for your attempt and attention.
ready to learn
18-Dec-11 5:01am
View
You answer is here:http://www.emgu.com/wiki/index.php/Tutorial and http://www.emgu.com/wiki/files/1.3.0.0/html/259ba717-fc88-a05c-cbd1-640a82dcc7bb.htm
ready to learn
17-Dec-11 12:24pm
View
I updated the question wishing you help me.
ready to learn
16-Dec-11 12:18pm
View
I want to load image1 on myPanel.(by clicking button1)then I want to load image2 on the same panel.( by clicking button2).then I want to earase the parts of image2 by using mouse(user chooses where to be erased)so that where ever the user erases, ,He can see image1 .
ready to learn
15-Dec-11 10:28am
View
I ment when I want to do the earasing it occured.I set the panel as AutoSize but it didn't help.As I'm new in this field_and I think you know it_ and I really need this codes.Please write all the codes which should be used.Thanks
ready to learn
15-Dec-11 10:10am
View
When I use your code the panel devides to four parts and each part shows a picture.When draging on it,nothing occurs
ready to learn
13-Dec-11 12:18pm
View
Thanks a lot OriginalGriff for your attention and answer
ready to learn
13-Dec-11 11:39am
View
sorry to ask again.But I can't understand what should I write in the OnPaintBackground method.
ready to learn
13-Dec-11 8:20am
View
can you explain by giving codes please?
ready to learn
13-Dec-11 8:20am
View
Deleted
Can you explain more and give the codes?
ready to learn
13-Dec-11 8:06am
View
It's obvious that I don't want my image to flash horrible.How can I have two regions? and how should I use them? please guide me as you alwase did.
ready to learn
8-Dec-11 15:30pm
View
I used this way but if I want to set the backgroundImage of my image in the paint function,the image will lights up during drawing and if I want to se the backgroundImage in another function,then how should I darw on it?Edited:if I use this method,then I can use paint function to draw lines_by using mouse. which function should I use to draw lines _by clicking button?
ready to learn
8-Dec-11 13:30pm
View
Thanks a lot.your answer is helpfull.I found an article which _I think_ provides the codes of what you explain.
ready to learn
8-Dec-11 5:27am
View
Sorry, I deleted it because I got my answer and I didn't want to extand the question by the sentence not related to it.You could have deleted your comment too.Any way to avoid making you angry,I modified the comment.
ready to learn
8-Dec-11 4:25am
View
Deleted
I wonder why no one answers me.what's the problem?
ready to learn
2-Dec-11 11:18am
View
Your code works well.But when messuring scale, the picture lights up.To make it not to light up, I deleted "Grafics g = e.Grafics;" and "g.drawImage(muimage,new Point(0,0));" and set the backgroundImage of my panel where I wanted to load the image by the code: " myPanel.backgroundImage = myImage " and now I should say thanks a lot for your great help.
ready to learn
27-Nov-11 6:35am
View
Thanks again OriginalGriff for your help.
ready to learn
27-Nov-11 5:12am
View
that's very good.as I searched for paint event and onpaint event, They occur whenever the form changes,for example when I drag the form, the paint event will occur.doesn't it make a ploblem? means that by using the way you suggest ,If I drag the form ,will I loose my previous painting?
ready to learn
24-Oct-11 13:35pm
View
system.drawing.I want to use emgucv and it's watershed function.this function uses itptr.I have used bitmap in my project and now I want to add watershed function to it.so I want to convert bitmap to intptr
ready to learn
1-Oct-11 4:12am
View
It worked for me, thanks
ready to learn
1-Oct-11 3:35am
View
Thanks for your attention.to answer you, I updated the question.
ready to learn
30-Sep-11 13:12pm
View
the length of my array depends on the length of my picturebox which is not reachable in my form.
ready to learn
30-Sep-11 8:37am
View
Thanaks a lot.your answer was the easiest and for me the best one.I set FotmBorderStyle to sizable.The one helped me was changing AutoSizeMode to GrowOnly.
ready to learn
22-Sep-11 10:28am
View
Thanks a lot Chris.Your article helped me a lot,as I found your answer the best one,I want to ask you another guestion:"what does each class in emgucv do and how can I use them?"Is there an e-book which can help?Thanks again in advance
ready to learn
19-Sep-11 6:44am
View
Deleted
thanks a lot, although your web sites were useful but they didn't explain emgucv
ready to learn
11-Aug-11 3:40am
View
you are just right,but I dont know how to create clone of input array
ready to learn
11-Aug-11 3:30am
View
I didn't get you well,But all the functions create the same problem for me,means that if I use arrayG or arrayB or ... as entrance for showPic, the result will be tha same and showPic shows me the binary picture.
ready to learn
11-Aug-11 3:10am
View
I'm nearly sure those things you saied doesn't occur. once I had this problem with passing bitmap through functions and I solve it by:
bm = (Bitmap)bm.Clone();
Is there a way like that which I can use now?
ready to learn
11-Aug-11 3:06am
View
yes,sure
ready to learn
11-Aug-11 1:54am
View
you are right.but I want to use that array to make a bitmap
ready to learn
15-Jul-11 4:21am
View
yeah.and how can I do that?
ready to learn
15-Jul-11 4:05am
View
I explaned more for OriginalGriff ,please read my explanation,besides I should say I want that list sorted by color so that I start from the least integer(color),go on, and reach the pixcels which have that color.I will show you the algorithim If I can
ready to learn
15-Jul-11 1:58am
View
I want to write watershed algorithim which determines the areas of the picture(according to the color).One of the steps in the algorithim I found is what I explained.after all I would be so thankfull if you help me to solve my problem or give me another watershed algorithim which doesn't cost this problem.
ready to learn
30-Jun-11 11:08am
View
thanks a lot.I think it works
ready to learn
30-Jun-11 10:40am
View
can you please change the code so that this problem doesn't take place?I return the image in another one
ready to learn
30-Jun-11 10:34am
View
do you mean that if I want to pass the bitmap it will be passed by refrence?notice that I didn't use "Ref".
ready to learn
30-Jun-11 10:32am
View
sorry this is true:
private Bitmap gray(Bitmap bm)
{
st_g.Start();
int cal;
BitmapData bmdata = bm.LockBits(new Rectangle(0, 0, bm.Width, bm.Height), ImageLockMode.ReadWrite, PixelFormat.Format24bppRgb);
IntPtr scan0 = bmdata.Scan0;
int stride = bmdata.Stride;
unsafe
{
byte* p = (byte*)(void*)scan0;
int offset = stride - (bm.Width * 3);
for (int i = 0; i < bm.Height; i++)
{
for (int j = 0; j < bm.Width; j++)
{
cal =Convert.ToInt32( (p[0] + p[1] + p[2])/3);
p[0] = p[1] = p[2] = (byte)cal;
p += 3;
}
p += offset;
}
}
bm.UnlockBits(bmdata);
st_g.Stop();
return bm;
}
ready to learn
27-Jun-11 11:32am
View
Thanks for your answer,I did refrences and used API but can you explain more about interop wrapper class?and what should I do at last?
ready to learn
26-Jun-11 11:15am
View
Thanks abhinav.the other question is that:Is it possible to call the dll only with istalling the MCR? or do I have to install the MATLAB completly?
ready to learn
25-Jun-11 4:42am
View
Thanks again Richard
ready to learn
14-Jun-11 12:56pm
View
Thanks for your attention SAKryukov and Richard MacCutchan.
Here is some of my codes;
when running,I got the exception:
'Access Violation Exception' on the underlined line.how can I solve it?
On the other hand, how can I control the pointer?
<pre><pre lang="cs">BitmapData bmdata = bm.LockBits(new Rectangle(0, 0, bm.Width, bm.Height), ImageLockMode.ReadWrite, PixelFormat.Format24bppRgb);
IntPtr scan0 = bmdata.Scan0;
int stride = bmdata.Stride;
unsafe
{
int g;
byte* p = (byte*)(void*)scan0;
byte*t=null
int offset = stride - (bm.Width * 3);
for (int i = 0; i < bm.Height; i++)
{
for (int j = 0; j < bm.Width; j++)
{
t=p-n3-(stride*n);
if(t[0]==255)
g++;
p += 3;
}
p += offset;
}
}
bm.UnlockBits(bmdata);
return bm;</pre>
</pre>
ready to learn
14-Jun-11 1:53am
View
I want to use System.Drawing
ready to learn
13-Jun-11 15:41pm
View
you helped alot.thank you.but I still dont know how to realize when the pointer refers to the area not belonging to my image.
ready to learn
13-Jun-11 15:05pm
View
thanks a lot.I think bitmap and unsafe is what I need.I used them to do my project.As I want to do some changes in the picture I can use pointer or arrays.when using the pointer, I dont know how to realize whether the pixel under use exists or not.what's the solution?another question is "will the running time be accessible If I copy the image in an array and do the chanes in the array?"
Show More