|
Search
Tutorials and Code
Syndication
My Account
Community Forums
Webmaster Tools
Tech Jobs
|
Controlling The Size Of A MetafileHello NG, I have a problem when drawing a metafile. I want to create barcharts with a fixed size. The bars are filled in a certain color, the rest is transparent. In details: - create a Metafile...
Save Control To Bitmap From A Console Applicationhi, my final goal is generating a bitmap with rich/html text formating. example: graphics.drawstring ("text1 text2... ect). after i tried playing with (graphics.measurecharacterranges, graphics...
Graduated FillIs this group still active? The last post I see is from April 2008. But anyway... Can someone please explain the "best" way to produce a graduated fill (e.g. Blue to white) using the .NET framework...
PrintDocument "Page #" DialogWhen using the PrintDocument component, it displays a dialog that shows the current page number. Is there anyway to prevent this dialog from displaying. What I have is a tabbed dialog that loops...
Visio 2007 XML Schema DefinitionHi, I need to get Visio 2007 Schema Definition file (.xsd) but I could not find it. It is supposed to be in the Office2007XMLSchema.exe downloaded from http://www.microsoft.com/downloads/details...
Drawing ShadowsHi folks, I'm drawing shadows around a custom control. That is, the shadow is actually painted inside the control's canvas / ClientRectangle, along its sides - the width/height of the shadow is...
Drawing A =?iso-8859-1?Q?90=B0_arc_1px_wide_on_one_end_and_2px?=Hi folks, as the subject says - I'm trying to draw arcs with varying line widths. Actually it's a border with rounded corners around a control, where all four borders can have different BorderWidths...
Custom Gradient BrushI need a combined linear/path gradient brush - like a linear gradient except that the gradient is not horizontal or vertical or diagonal, but follows the path. In this case the path is an arc....
DrawImage(Image, Rectangle) Question?Hello all, When I scale down a 500x500 image to a 400x400 image I get a small border on the left and top of the new image (see code below). I using the graphics.Clear(Color.Black) because eventually...
How To Convert Color EMF Spool File To Grayscale Or Black /white Spool File?Hello I make R&D virtual printer driver and I am using HP Color LaserJet 8500 PCL driver for EMF spool file generation. It is not grayscale supported printer driver .SO when I print color Document...
Metafile Resolution Regardless Of System SettingsI created Graphics object to paint on Metafile: Bitmap bitmap = new Bitmap(100, 100); bitmap.SetResolution(96, 96); Graphics g = Graphics.FromImage(bitmap); Metafile mf = new Metafile(g.GetHdc...
Animated GIF - Frame DelayHi :) I have some code - it captures screen on specified intervals, crops specified area of it, saves result to bmp files and then, after user deletes unneeded bmps - combines an animated gif....
Painting Parts Of A PanelI have a Windows Forms application that has worked well for more than two years on .NET Framework 1.1. It is painting intensive, so for performance reasons I break up a Panel into different rectangles...
Double-buffering In .NET 2.0 And LaterHas there been a change? In 1.1 I had to, without really knowing why, declare a new Panel class based on the System.Windows.Forms.Panel and then SetStyle(ControlStyles.DoubleBuffer) in its constructor...
Image RegionsHi EveryOne, Is the a way to analyze image layout: what i need it to split image into pictures or text regions. thanks
How Do I Zoom To A Target Point And Update The Scrollbars In C#?Hello, I am attempting to develop a custom control that allows the user to zoom to a specific point on an image, typically a map. The problem that I am having is when I attempt to adjust the scrollbar...
Draw An Image VerticallyHi everyone, I would like to draw and image vertically using the Graphics object Thank you in advance, Samuel
How Do I Write XML Content To TIFF FileHi, By using .NET/C# I would like to create a new TIFF file, then open a XML file, read the XML file content and write down to the TIFF file (in a table format), then save the TIFF file. I would...
DrawImage Anomaly With Small BitmapsI've been using a small bitmap buffer to do some off screen drawing and drop it in place during a Paint event. Everything goes well till I try to run my code on a terminal services connection. When...
Key Feature Of .NET Development @ Gatewaytechnolabs.comGateway has invested in training resources and developing best practices for application development using Microsoft=92s .NET architecture. Microsoft .NET architecture key features implemented:...
Is There A Way To Create An Alpha Mask?I found some code that will let me create drag images, and I want to simulate the effect that Explorer uses (decreasing the alpha until the stuff at the bottom is virtually invisible). The easiest...
Printing From A Microsoft.Reporting.Winform ReportFirst, sorry for the cross posting - my application is a VB 2008 Windows Forms program, but I will take a solution in C# as well (I write in both as needed). I am writing a check printing application...
How Hoes VS Draw Docking Indicators On The Screen?Hello, Anyone know how Visual Studio draws on the screen like when showing the window docking indicators? Thanks, Schneider
Development JobHello folks, my english is not good, but I will try to speak. I need to implement 3 image effects in an C# windows forms application. I want to hire someone who has domain over gdi+. Please contact...
Accessing Palette Is Messing Up My ImageAt one point in my code I need to find a color that is not currently used by my Bitmap. Here is my current code: Dim rtibitmap As New Bitmap(50, 50, PixelFormat.Format32bppArgb) Dim rtigraphic As...
Infinite Grid Or Chessboard Done How?I'm able to generate a chessboard of NxN squares, where N is any arbitrary number, and using 'scroll bars' to scroll from one end of the board to the other, since the board is too large to fit on a...
Draw Borderless FormI have a borderless form and have one button when the button is clicked the form windowstate will be maximized, but while maximizing and inspite of the form is borderless i can see the form text and...
Drawing A SplitterHi All, I have a UserControl that manages the placement of four panels in the same spirit as the four pane view you see in 3d modeling applications. I have everything working fine, except for the...
Drawing A Discontinuous Line With Pen Width > 1 Fails With "Out OfI want to make some "smudges" on a form by dragging the mouse with the left button down, then stop drawing when the mouse button is up. The following code works fine when the variable sglPenWidth below...
Determine If A Point Lies On A Existing LineI have a programming task of determining whether or not a given point lies on a existing line. The following points make up the line: Point point1 = new Point(32, 0); Point point2 = new Point(32...
IPhone WayHow do I do "paging" like the way iPhone does, that is the swooshing of a page? For input device, I could take the mouse coordinates as the finger motion. I have done paging and scrolling with graphics...
Embed An Image In An Email?How do I embed an image in an HTML email (not have a link to an image on a server but rather ship the jpeg in the email itself)?
Corruption In Resized GIF With Bitmaps And GraphicsHi! I have the following code that works well in most cases. For one particular image of the ones I tested, it creates a corrupted version lacking 50-80% of the lower pixel rows. I've recreated the...
Custom Color Doesn't Work In DrawStringI'm sure I've missed the obvious, but when I define a custom color, my DrawString call from my Paint event doesn't seem to draw anything at all. void btnNav_Paint(object sender, PaintEventArgs e) {...
Drawing And PrintingI'm using the Drawing namespace with print, where that process starts with System.Drawing.PrintDocument.Print(). With printing I have a need for finer grained control so that I can talk to print...
Custom Controli,am building a custom control using custom Designer inherited from ParentControlDesigner, in the custom control class i have overrides Displayrectangle, Onresize, DefaultSize, OnClientSizeChanged,...
Some Help With System.Drawing Part 1.Hi there. I'm very new to System.Drawing and I'm running into a few walls with my drawing. I think I understand the basics (at least at a high level) but now I'm starting to run into performance problems...
Positioning Of Text Strings After Rotation Is IncorrectI have figured out how to rotate bitmaps correctly (after help from this group). I used the image center as the rotation point. Positioning after rotation was based on how the coordinate axes moved...
Image Distortion And Positioning DistortionAny ideas what I can try to get rid of distortion of images and positioning problems with text? I'm painting images and text on the screen and to a Dymo Label printer. They both work fine, except...
Virtual CoordsHi y'all. I am writing a viewport for my music notation program. All Notation elements are stored as I would call them 'virtual' coords i.e. they have no real resemblance to pixels, Inches...
Help For Improving The Performance Of GDIPlus Bitmap DrawingHi Gurus, Currently I encouter a performance issue in CSharp PictureBox with GDIPlus rendering, my dataset is 78 curves, 512 points in each curve. I enabled the doublebuffer in WinForm, first use...
Paint PerformanceI have a complex UI with multiple controls in a panel. Adding/removing controls or repositioning nested controls creates a sluggish UI experience. I have resorted to turing the panel invisible before...
Problem With Transparent ImageHello, I am trying to use an image on one of my buttons, and I'm having a bit of trouble. The image uses the color Fuchsia (RGB:255,0,255) as it's background color. The trouble is, when I set...
When Using System.IO.FileStream, I Write 8 Bytes, Then Seek To The Start Of The File, Does The 8 Bytes Get Flushed On Seek And The Buffer Become A Readbuffer At That Point Instead Of Being A Write Buffer?When using System.IO.FileStream, I write 8 bytes, then seek to the start of the file, does the 8 bytes get flushed on seek and the buffer become a readbuffer at that point instead of being a write...
Image Saving Compression For GPRS.Hi all, I have built a signature control that works fine and we have been using it for about 2 years now. It is in CF2.0 and used on Windows Mobile 5 devices. The problem that I am having is...
Excel Form Template & SavingHi, I have an Excel form template (12 pages long) that will have many users. How can I make sure it is saved to the users drive rather than the folder the template is in? We have multiple drives...
Draw Curved Line From Point To PointDear NG, I want to draw a curved line like here: http://www.dusch-westermaier.de/img/wave.gif from a point A to a point B. Do you have any idea how to handle this in C#? Thank you very much,...
Is It Possible To SetClip() For Multiple Regions?I'm using an offscreen bitmap to do my drawing. When i copy the the bitmap to the Graphics context in the last step, it causes a flicker in my foregroud Layered Window. I've found the best way to...
How To Move Rectange Over A Pixture BoxHi to All, How to move,drag,resize the rectangle drawn over the pixture box.I can able to draw a rectangle on pixture box. Thanks in advance
Drawing To Another Application WindowIs it possible to draw shapes and text to forms created by other applications? If so, how would I go about doing this? I want to overlay text I am generating over another application window, and...
|
Latest Tech Bargains
Advertisement
Free Magazine Subscriptions
Today's Pictures
Today's Video
Other Resources
Latest Download
Latest Icons
|