Click here to Skip to main content
15,922,166 members
Home / Discussions / C#
   

C#

 
AnswerRe: How can i make a Panelarray ? Pin
Judah Gabriel Himango28-Mar-06 9:31
sponsorJudah Gabriel Himango28-Mar-06 9:31 
QuestionSelectable area of custom TabPage Pin
madsnowman28-Mar-06 6:39
madsnowman28-Mar-06 6:39 
QuestionSend Mail in C# 2005 Pin
ahchoo28-Mar-06 6:09
ahchoo28-Mar-06 6:09 
AnswerRe: Send Mail in C# 2005 Pin
Luis Alonso Ramos28-Mar-06 6:20
Luis Alonso Ramos28-Mar-06 6:20 
GeneralRe: Send Mail in C# 2005 Pin
ahchoo28-Mar-06 6:34
ahchoo28-Mar-06 6:34 
GeneralRe: Send Mail in C# 2005 Pin
Luis Alonso Ramos28-Mar-06 6:39
Luis Alonso Ramos28-Mar-06 6:39 
GeneralRe: Send Mail in C# 2005 Pin
Susan Hernandez29-Mar-06 14:56
Susan Hernandez29-Mar-06 14:56 
QuestionGraphics.DrawImage half pixel clip and shift? Pin
vineas28-Mar-06 5:33
vineas28-Mar-06 5:33 
I'm having a problem with a graphics control I'm working on. It seems that the Graphics.DrawImage method is clipping a half pixel off of the image, and then shifting it up and left by that half pixel. This can usually only be seen when zoomed in 2-4x or more, but now that I know what to look for, I'm seeing it happen even close to 1x with certain images. The following image shows the extent of the issue when zoomed in significantly - the green lines you see are where the bounds of the bitmap should be: odd_image.jpg[^]

The graphics object that gets drawn to is from a bitmap that gets created on the fly depending on the size of the control and the objects in it. All graphics properties are set to the default except for the following:

g.InterpolationMode = InterpolationMode.NearestNeighbor
g.PageUnit = GraphicsUnit.Millimeter
and there is a translation applied (though removing it did not affect the problem).

I tried changing to the PageUnit to various values with no change, I also messed with PixelOffsetMode, CompositingMode, CompositingQuality and SmoothingMode, trying various values to no effect.

I've done several searches in here and MSDN and found nothing that fixed the problem, or even hints that there is one. Has anyone seen anything similar to this, or have any ideas to try?

-----
In the land of the blind, the one eyed man is king.
AnswerRe: Graphics.DrawImage half pixel clip and shift? Pin
J. Dunlap28-Mar-06 17:17
J. Dunlap28-Mar-06 17:17 
GeneralRe: Graphics.DrawImage half pixel clip and shift? Pin
vineas29-Mar-06 2:38
vineas29-Mar-06 2:38 
QuestionHow to create own Custom Table Style For DataGrid Pin
brainthorburn28-Mar-06 4:28
brainthorburn28-Mar-06 4:28 
QuestionSorting Collection Pin
England100028-Mar-06 4:03
England100028-Mar-06 4:03 
AnswerRe: Sorting Collection Pin
Kamal.Afridi28-Mar-06 6:34
Kamal.Afridi28-Mar-06 6:34 
GeneralRe: Sorting Collection Pin
England10002-Apr-06 22:41
England10002-Apr-06 22:41 
QuestionControl Focus Problem - a Bug? or.. Pin
rnvrnv28-Mar-06 3:12
rnvrnv28-Mar-06 3:12 
AnswerRe: Control Focus Problem - a Bug? or.. Pin
Luis Alonso Ramos28-Mar-06 6:23
Luis Alonso Ramos28-Mar-06 6:23 
QuestionBlock list view repaint? Pin
Dominik Reichl28-Mar-06 2:54
Dominik Reichl28-Mar-06 2:54 
AnswerRe: Block list view repaint? Pin
Luis Alonso Ramos28-Mar-06 6:24
Luis Alonso Ramos28-Mar-06 6:24 
GeneralRe: Block list view repaint? Pin
Dominik Reichl28-Mar-06 7:11
Dominik Reichl28-Mar-06 7:11 
GeneralRe: Block list view repaint? Pin
Luis Alonso Ramos28-Mar-06 7:14
Luis Alonso Ramos28-Mar-06 7:14 
QuestionHow can I get size of a baloon tooltip? Pin
Lexa198328-Mar-06 2:34
Lexa198328-Mar-06 2:34 
QuestionMedia File Cutting and Trimming Pin
shreyash_parihar28-Mar-06 2:07
shreyash_parihar28-Mar-06 2:07 
QuestionHow to block popup window in webbrowser Pin
Dima Filipiuk28-Mar-06 1:06
Dima Filipiuk28-Mar-06 1:06 
GeneralRe: How to block popup window in webbrowser Pin
Guffa28-Mar-06 8:10
Guffa28-Mar-06 8:10 
QuestionDataGridViewColumn with possibility to select a few Items Pin
hpetriffer28-Mar-06 1:05
hpetriffer28-Mar-06 1: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.