¡@

Home 

c# Programming Glossary: rect

C#: TreeView owner drawing with ownerdrawtext and the weird black highlighting when clicking on a node

http://stackoverflow.com/questions/1003459/c-treeview-owner-drawing-with-ownerdrawtext-and-the-weird-black-highlighting-w

not just selected... The highlight gets drawn over by my rectangle once the mouse button is released but does get drawn and.. It is a bit of a pain because you have to handle focus rectangles selection highlights and drawing all the glyphs yourself... look like Explorer selections overdraw with alpha'd white rectangle to fade the colour a lot Brush bodge new SolidBrush Color.FromArgb..

How can I iterate through each pixel in a .gif image?

http://stackoverflow.com/questions/1230188/how-can-i-iterate-through-each-pixel-in-a-gif-image

System.Drawing.Bitmap bmp Rectangle rect new Rectangle 0 0 bmp.Width bmp.Height System.Drawing.Imaging.BitmapData.. System.Drawing.Imaging.BitmapData bmpData bmp.LockBits rect System.Drawing.Imaging.ImageLockMode.ReadOnly bmp.PixelFormat..

iTextSharp - How to get the position of word on a page

http://stackoverflow.com/questions/2375674/itextsharp-how-to-get-the-position-of-word-on-a-page

method to pull the text out of a PDF. I need to find the rectangle position for each word found in the document. Is there.. word found in the document. Is there any way to get the rectangle position of a word in a PDF using iTextSharp c# pdf itextsharp.. reader pageNum strat get the strings n rects from strat. public class MyTexExStrat implements TextExtractionStrategy..

WebBrowser.DrawToBitmap() or other methods?

http://stackoverflow.com/questions/2434156/webbrowser-drawtobitmap-or-other-methods

static extern IntPtr GetWindowRect IntPtr hWnd ref RECT rect DllImport user32.dll public static extern IntPtr ReleaseDC IntPtr..

How can I write fast colored output to Console?

http://stackoverflow.com/questions/2754518/how-can-i-write-fast-colored-output-to-console

if h.IsInvalid CharInfo buf new CharInfo 80 25 SmallRect rect new SmallRect Left 0 Top 0 Right 80 Bottom 25 for byte character..

Fixed point math in c#?

http://stackoverflow.com/questions/605124/fixed-point-math-in-c

segment intersections line circle intersections circle rect intersections etc that also probably need to move from floating.. files. Anything you could do to point me in the right direction is much appreciated if I can get this working I plan to open.. make sure that your results aren't being put off by incorrectly adjusting a constant. So far this FInt logic seems as fast..

how can i get text formatting with iTextSharp

http://stackoverflow.com/questions/6882098/how-can-i-get-text-formatting-with-itextsharp

this question Let me try pointing you in a different direction. iTextSharp has a really beautiful and simple text extraction.. .GetEndPoint iTextSharp.text.Rectangle rect new iTextSharp.text.Rectangle curBaseline Vector.I1 curBaseline.. topRight Vector.I1 topRight Vector.I2 Single curFontSize rect.Height See if something has changed either the baseline the..

How do you do AppBar docking (to screen edge, like WinAmp) in WPF?

http://stackoverflow.com/questions/75785/how-do-you-do-appbar-docking-to-screen-edge-like-winamp-in-wpf

info.OriginalResizeMode appbarWindow.Topmost false Rect rect new Rect info.OriginalPosition.X info.OriginalPosition.Y info.OriginalSize.Width.. new ResizeDelegate DoResize appbarWindow rect public static void SetAppBar Window appbarWindow ABEdge edge.. delegate void ResizeDelegate Window appbarWindow Rect rect private static void DoResize Window appbarWindow Rect rect ..

Get a screenshot of a specific application [duplicate]

http://stackoverflow.com/questions/891345/get-a-screenshot-of-a-specific-application

var proc Process.GetProcessesByName procName 0 var rect new User32.Rect User32.GetWindowRect proc.MainWindowHandle ref.. User32.Rect User32.GetWindowRect proc.MainWindowHandle ref rect int width rect.right rect.left int height rect.bottom rect.top.. proc.MainWindowHandle ref rect int width rect.right rect.left int height rect.bottom rect.top var bmp new..

Restoring Window Size/Position With Multiple Monitors

http://stackoverflow.com/questions/937298/restoring-window-size-position-with-multiple-monitors

is now by itself without my second monitor then it correctly moves it to monitor 1. Any thoughts My environment C# .NET.. resets the position to windows default. Saves the correct bounds even if the Form is minimized or maximized common error.. or maximized common error Saves the WindowState correctly. Saving FormWindowState.Minimized is disabled by design. The..

C#: TreeView owner drawing with ownerdrawtext and the weird black highlighting when clicking on a node

http://stackoverflow.com/questions/1003459/c-treeview-owner-drawing-with-ownerdrawtext-and-the-weird-black-highlighting-w

sender DrawTreeNodeEventArgs e string text e.Node.Text Rectangle itemRect e.Bounds if e.Bounds.Height 1 e.Bounds.Width 1.. e string text e.Node.Text Rectangle itemRect e.Bounds if e.Bounds.Height 1 e.Bounds.Width 1 return int cIndentBy.. Brush backBrush new SolidBrush leftColour e.Graphics.FillRectangle backBrush itemRect Faint underline along the bottom of..

How to render bitmap into canvas in WPF?

http://stackoverflow.com/questions/2168370/how-to-render-bitmap-into-canvas-in-wpf

new BitmapImage new Uri c demo.jpg dc.DrawImage img new Rect 0 0 img.PixelWidth img.PixelHeight share improve this answer..

Best way to get a glow effect windows phone 7

http://stackoverflow.com/questions/3719750/best-way-to-get-a-glow-effect-windows-phone-7

public FontInfo WriteableBitmap image Dictionary char Rect metrics this.Image image this.Metrics metrics public WriteableBitmap.. Image get private set public Dictionary char Rect Metrics get private set private static Dictionary string FontInfo.. let key char int c.Attribute key let rect new Rect int c.Element x int c.Element y int c.Element width int c.Element..

How can I render text on a WriteableBitmap on a background thread, in Windows Phone 7?

http://stackoverflow.com/questions/5666772/how-can-i-render-text-on-a-writeablebitmap-on-a-background-thread-in-windows-ph

public FontInfo WriteableBitmap image Dictionary char Rect metrics int size this.Image image this.Metrics metrics this.Size.. Image get private set public Dictionary char Rect Metrics get private set public int Size get private set private.. let key char int c.Attribute key let rect new Rect int c.Element x int c.Element y int c.Element width int c.Element..

How do I do Print Preview when using a DocumentPaginator to print?

http://stackoverflow.com/questions/584551/how-do-i-do-print-preview-when-using-a-documentpaginator-to-print

PageSize.Height page.Measure PageSize page.Arrange new Rect new Point 0 0 PageSize return new DocumentPage page public override..

How to draw gridline on WPF Canvas?

http://stackoverflow.com/questions/6434284/how-to-draw-gridline-on-wpf-canvas

the width and height filled with the tile from the origin RectangleGeometry Rect 0 0 130 120 GeometryDrawing.Geometry GeometryDrawing.. filled with the tile from the origin RectangleGeometry Rect 0 0 130 120 GeometryDrawing.Geometry GeometryDrawing DrawingBrush.Drawing.. based on the above XAML static Brush CreateGridBrush Rect bounds Size tileSize var gridColor Brushes.Black var gridThickness..

How do you do AppBar docking (to screen edge, like WinAmp) in WPF?

http://stackoverflow.com/questions/75785/how-do-you-do-appbar-docking-to-screen-edge-like-winamp-in-wpf

info.OriginalResizeMode appbarWindow.Topmost false Rect rect new Rect info.OriginalPosition.X info.OriginalPosition.Y.. appbarWindow.Topmost false Rect rect new Rect info.OriginalPosition.X info.OriginalPosition.Y info.OriginalSize.Width.. private delegate void ResizeDelegate Window appbarWindow Rect rect private static void DoResize Window appbarWindow Rect rect..

Get a screenshot of a specific application [duplicate]

http://stackoverflow.com/questions/891345/get-a-screenshot-of-a-specific-application

Process.GetProcessesByName procName 0 var rect new User32.Rect User32.GetWindowRect proc.MainWindowHandle ref rect int width.. procName 0 var rect new User32.Rect User32.GetWindowRect proc.MainWindowHandle ref rect int width rect.right rect.left.. User32 StructLayout LayoutKind.Sequential public struct Rect public int left public int top public int right public int bottom..

Saving a screenshot of a window using C#, WPF, and DWM

http://stackoverflow.com/questions/1858122/saving-a-screenshot-of-a-window-using-c-wpf-and-dwm

IntPtr handle IntPtr hdcSrc User32.GetWindowDC handle RECT windowRect new RECT User32.GetWindowRect handle ref windowRect.. hdcSrc User32.GetWindowDC handle RECT windowRect new RECT User32.GetWindowRect handle ref windowRect int width windowRect.right.. public static extern IntPtr GetWindowRect IntPtr hWnd ref RECT rect DllImport user32.dll public static extern IntPtr ReleaseDC..

WebBrowser.DrawToBitmap() or other methods?

http://stackoverflow.com/questions/2434156/webbrowser-drawtobitmap-or-other-methods

IntPtr handle IntPtr hdcSrc User32.GetWindowDC handle RECT windowRect new RECT User32.GetWindowRect handle ref windowRect.. hdcSrc User32.GetWindowDC handle RECT windowRect new RECT User32.GetWindowRect handle ref windowRect int width windowRect.right.. public static extern IntPtr GetWindowRect IntPtr hWnd ref RECT rect DllImport user32.dll public static extern IntPtr ReleaseDC..

How to take a screenshot of a Full Size window in C#

http://stackoverflow.com/questions/4176340/how-to-take-a-screenshot-of-a-full-size-window-in-c-sharp

hdcSrc User32.GetWindowDC handle get the size User32.RECT windowRect new User32.RECT User32.GetWindowRect handle ref windowRect.. handle get the size User32.RECT windowRect new User32.RECT User32.GetWindowRect handle ref windowRect int width windowRect.right.. User32 StructLayout LayoutKind.Sequential public struct RECT public int left public int top public int right public int..

How to hide desktop icons programatically?

http://stackoverflow.com/questions/6402834/how-to-hide-desktop-icons-programatically

pwi StructLayout LayoutKind.Sequential public struct RECT private int _Left private int _Top private int _Right private.. struct WINDOWINFO public uint cbSize public RECT rcWindow public RECT rcClient public uint dwStyle public uint.. WINDOWINFO public uint cbSize public RECT rcWindow public RECT rcClient public uint dwStyle public uint dwExStyle public uint..

I created a program to hide desktop icons on double click of desktop but would only like to hide icons on double click empty space

http://stackoverflow.com/questions/7222749/i-created-a-program-to-hide-desktop-icons-on-double-click-of-desktop-but-would-o

pwi StructLayout LayoutKind.Sequential public struct RECT private int _Left private int _Top private int _Right private.. struct WINDOWINFO public uint cbSize public RECT rcWindow public RECT rcClient public uint dwStyle public uint.. WINDOWINFO public uint cbSize public RECT rcWindow public RECT rcClient public uint dwStyle public uint dwExStyle public uint..

How do you do AppBar docking (to screen edge, like WinAmp) in WPF?

http://stackoverflow.com/questions/75785/how-do-you-do-appbar-docking-to-screen-edge-like-winamp-in-wpf

StructLayout LayoutKind.Sequential private struct RECT public int left public int top public int right public int.. hWnd public int uCallbackMessage public int uEdge public RECT rc public IntPtr lParam private enum ABMsg int ABM_NEW 0 ABM_REMOVE..