Click here to Skip to main content
16,004,944 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to kill a Background worker instantly Pin
Nadia Monalisa13-Jan-07 23:05
Nadia Monalisa13-Jan-07 23:05 
GeneralRe: How to kill a Background worker instantly Pin
Luc Pattyn14-Jan-07 0:00
sitebuilderLuc Pattyn14-Jan-07 0:00 
GeneralRe: How to kill a Background worker instantly Pin
Nadia Monalisa14-Jan-07 0:17
Nadia Monalisa14-Jan-07 0:17 
GeneralRe: How to kill a Background worker instantly Pin
Luc Pattyn14-Jan-07 0:39
sitebuilderLuc Pattyn14-Jan-07 0:39 
QuestionRotating an image around its center point Pin
Mike Hankey13-Jan-07 22:00
mveMike Hankey13-Jan-07 22:00 
AnswerRe: Rotating an image around its center point Pin
Luc Pattyn13-Jan-07 22:42
sitebuilderLuc Pattyn13-Jan-07 22:42 
AnswerRe: Rotating an image around its center point Pin
Christian Graus13-Jan-07 23:07
protectorChristian Graus13-Jan-07 23:07 
GeneralRe: Rotating an image around its center point Pin
Luc Pattyn14-Jan-07 0:14
sitebuilderLuc Pattyn14-Jan-07 0:14 
Christian Graus wrote:
The other advice you were offered is wrong ( and weird )


In may simple image processing app, I have one image (a field "private Bitmap image;"),

a paint event handler that contains
Graphics g=e.Graphics;
int w=image.Width;
int h=image.Height;
Rectangle r=new Rectangle(x, y, w*zoomT/zoomN, h*zoomT/zoomN);
g.DrawImage(image,r);

where x, y are globals indicating top left position, and zoomT,zoomN are zooming parameters.

and some controls that trigger image operations; some of them take the form:
image.RotateFlip(RotateFlipType.Rotate90FlipNone);

The above rotate statement gives me a new image that is a rotated copy of the
original. It works just fine, as simple as that. Nothing weird, and no surprises either.









Luc Pattyn

GeneralRe: Rotating an image around its center point Pin
Christian Graus14-Jan-07 1:38
protectorChristian Graus14-Jan-07 1:38 
GeneralRe: Rotating an image around its center point Pin
Mike Hankey14-Jan-07 6:02
mveMike Hankey14-Jan-07 6:02 
GeneralRe: Rotating an image around its center point Pin
Mike Hankey14-Jan-07 5:33
mveMike Hankey14-Jan-07 5:33 
QuestionProgressBar Orientation Pin
blackjack215013-Jan-07 20:26
blackjack215013-Jan-07 20:26 
AnswerRe: ProgressBar Orientation Pin
Luc Pattyn13-Jan-07 20:35
sitebuilderLuc Pattyn13-Jan-07 20:35 
Questioncompare files Pin
Tahir Shah13-Jan-07 20:14
Tahir Shah13-Jan-07 20:14 
AnswerRe: compare files Pin
Luc Pattyn13-Jan-07 20:37
sitebuilderLuc Pattyn13-Jan-07 20:37 
Questionoveride column header clicked behaviour Pin
swjam13-Jan-07 19:38
swjam13-Jan-07 19:38 
Questionmulti-tab Browser Pin
dsl/fahk13-Jan-07 17:16
dsl/fahk13-Jan-07 17:16 
AnswerRe: multi-tab Browser Pin
Christian Graus13-Jan-07 19:01
protectorChristian Graus13-Jan-07 19:01 
QuestionPaste clipboard value to remote application. Pin
sampath Jayasinghe13-Jan-07 15:02
sampath Jayasinghe13-Jan-07 15:02 
AnswerRe: Paste clipboard value to remote application. Pin
Luc Pattyn13-Jan-07 19:13
sitebuilderLuc Pattyn13-Jan-07 19:13 
QuestionRe: Paste clipboard value to remote application. Pin
sampath Jayasinghe14-Jan-07 12:57
sampath Jayasinghe14-Jan-07 12:57 
AnswerRe: Paste clipboard value to remote application. Pin
Luc Pattyn14-Jan-07 13:22
sitebuilderLuc Pattyn14-Jan-07 13:22 
AnswerRe: Paste clipboard value to remote application. [modified] Pin
Luc Pattyn14-Jan-07 13:25
sitebuilderLuc Pattyn14-Jan-07 13:25 
AnswerRe: Paste clipboard value to remote application. Pin
Luc Pattyn14-Jan-07 13:42
sitebuilderLuc Pattyn14-Jan-07 13:42 
GeneralRe: Paste clipboard value to remote application. Pin
sampath Jayasinghe14-Jan-07 17:10
sampath Jayasinghe14-Jan-07 17:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.