15,914,500 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 elgammal (Top 8 by date)
elgammal
14-Mar-12 10:09am
View
Thank you
elgammal
13-Mar-12 11:13am
View
yes my question is how to design these pieces in c# form
elgammal
6-Feb-12 17:11pm
View
thanks for attention ,
but count and area already float variables!!!!!!!!
elgammal
10-Jan-12 9:44am
View
thank you for this help ,
i use this and it work properly
but it has small fault which is that ,Rotation cut the image corners
i firstly use this method for image rotation:
private Bitmap rotateImage(Bitmap b, float angle)
{
//create a new empty bitmap to hold rotated image
Bitmap returnBitmap = new Bitmap(b.Width, b.Height);
//make a graphics object from the empty bitmap
Graphics g = Graphics.FromImage(returnBitmap);
//move rotation point to center of image
g.TranslateTransform((float)b.Width/2, (float)b.Height / 2);
//rotate
g.RotateTransform(angle);
//move image back
g.TranslateTransform(-(float)b.Width/2,-(float)b.Height / 2);
//draw passed in image onto graphics object
g.DrawImage(b, new Point(0, 0));
return returnBitmap;
}
but it also cut image corners ,
i want some way not to cut image corners in EmguCV rotation ...
elgammal
9-Jan-12 16:37pm
View
Iam so sorry for this error ,
i don't how it is copied with this shape
this my actual code
private void button12_Click(object sender, EventArgs e)
{
Bitmap bm = new Bitmap(pictureBox1.Image);
Image<gray,byte> img = new Image<gray,byte>(bm);
double x = 20;
img.Rotate(x, new Gray(255));
pictureBox9.Image = img.ToBitmap();
}
elgammal
30-Dec-11 13:22pm
View
I found the solution ,it is:
the transparency key of the form was white
and the picturebox was white
so it was transparent
elgammal
29-Dec-11 18:19pm
View
I mean that this picturebox is transparent at run time not for design.....
elgammal
27-Dec-11 14:12pm
View
iam sorry for this trouble ,
but i can't follow what yot wrote.
Show More