Click here to Skip to main content
15,891,033 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to disable SAVE,PRINT options in MS OFFICE using WINDOWS API's Pin
Judah Gabriel Himango28-Dec-05 4:32
sponsorJudah Gabriel Himango28-Dec-05 4:32 
QuestionSockets Pin
HakunaMatada27-Dec-05 22:11
HakunaMatada27-Dec-05 22:11 
AnswerRe: Sockets Pin
KaptinKrunch28-Dec-05 2:30
KaptinKrunch28-Dec-05 2:30 
AnswerRe: Sockets Pin
leppie28-Dec-05 2:37
leppie28-Dec-05 2:37 
QuestionGDI+: pixel correctness Pin
peterchen27-Dec-05 21:46
peterchen27-Dec-05 21:46 
AnswerRe: GDI+: pixel correctness Pin
Robert Rohde27-Dec-05 22:24
Robert Rohde27-Dec-05 22:24 
AnswerRe: GDI+: pixel correctness Pin
leppie28-Dec-05 2:26
leppie28-Dec-05 2:26 
AnswerRe: GDI+: pixel correctness Pin
Roger Alsing28-Dec-05 3:04
Roger Alsing28-Dec-05 3:04 
go for what leppie said.

this is because all "pen" based commands in gdi+ is not pixelbased.
if you say draw a box from 0,0 to 3,3 it draws a box from the "center" of the 0,0 pixel to the "center" of the 3,3 pixel:


+---+---+---+---+
|   |   |   |   |
| ############# |
| # |   |   | # |
+-#-+---+---+-#-+
| # |   |   | # |
| # |   |   | # |
| # |   |   | # |
+-#-+---+---+-#-+
| # |   |   | # |
| ############# |
|   |   |   |   |
+---+---+---+---+

so we get a rectangle at subpixel level.
and when this is rendered with the default settings it looks funky and 1px off..

so just do what leppie said. Smile | :)

-- modified at 9:06 Wednesday 28th December, 2005
QuestionFinding row delimeters of a TextFile Pin
Acheive_it27-Dec-05 21:16
Acheive_it27-Dec-05 21:16 
Questionnew to C# Pin
chubbie27-Dec-05 18:13
chubbie27-Dec-05 18:13 
AnswerRe: new to C# Pin
WillemM28-Dec-05 8:52
WillemM28-Dec-05 8:52 
GeneralRe: new to C# Pin
chubbie28-Dec-05 13:43
chubbie28-Dec-05 13:43 
GeneralRe: new to C# Pin
imsathy29-Dec-05 2:05
imsathy29-Dec-05 2:05 
GeneralRe: new to C# Pin
chubbie29-Dec-05 13:43
chubbie29-Dec-05 13:43 
QuestionVS 2005 Pin
ppp00127-Dec-05 18:10
ppp00127-Dec-05 18:10 
AnswerRe: VS 2005 Pin
Vikram A Punathambekar27-Dec-05 19:01
Vikram A Punathambekar27-Dec-05 19:01 
GeneralRe: VS 2005 Pin
Kevin McFarlane28-Dec-05 5:25
Kevin McFarlane28-Dec-05 5:25 
GeneralRe: VS 2005 Pin
ppp00128-Dec-05 7:05
ppp00128-Dec-05 7:05 
GeneralRe: VS 2005 Pin
Dave Kreskowiak28-Dec-05 8:15
mveDave Kreskowiak28-Dec-05 8:15 
QuestionAJAX Pin
ppp00127-Dec-05 18:05
ppp00127-Dec-05 18:05 
AnswerRe: AJAX Pin
Jamie Nordmeyer27-Dec-05 18:12
Jamie Nordmeyer27-Dec-05 18:12 
GeneralRe: AJAX Pin
leppie27-Dec-05 18:30
leppie27-Dec-05 18:30 
GeneralRe: AJAX Pin
leppie27-Dec-05 18:34
leppie27-Dec-05 18:34 
GeneralRe: AJAX Pin
Jamie Nordmeyer28-Dec-05 4:39
Jamie Nordmeyer28-Dec-05 4:39 
GeneralRe: AJAX Pin
ppp00127-Dec-05 20:05
ppp00127-Dec-05 20:05 

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.