Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
May 2008
June 2008
all groups > dotnet drawing api > october 2003

Filter by week: 1 2 3 4 5

DPI/Large Fonts issues
Posted by James Hancock at 10/31/2003 11:58:28 PM
There are a couple of things in the framework that don't handle nicely with DPI changes (well lots of things but two that I have noticed) #1 Background graphics on forms tile in large fonts instead of drawing the graphic larger. #2 All of the sizing functions are off when looking at graphics...more >>


GDI+: SaveAdd
Posted by ComputerNerd22 NO[at]SPAM comcast.net at 10/31/2003 8:32:33 AM
I first take a mult-page tiff and add some text to it, and when i save it only saves the first page, when i try to go back and add the extra pages or save the new file as mult-page it craps out on me - here is the code Imports System.IO Imports System.Drawing Imports System.Drawing.Image 'Fr...more >>

Shading effect
Posted by ZippyV at 10/30/2003 6:21:49 PM
Hi, I was browsing this website http://www.dotnetcharting.com/gallery/view.aspx?img=10 and I was asking myself: How can those bars get that nice candy-like shading effect, when only 1 color (see source under the chart) is given? To fill 1 block (red, green, yellow or blue), I tried using a Lin...more >>

[REPOST] - Drawlines with a non-solid brush vs. Drawlines with a solid brush.
Posted by Brock at 10/30/2003 4:46:43 PM
I am seeing inconsistent drawing behavior when calling Graphics.DrawLines() with a pen created from a non solid brush vs. a Graphics.Drawlines() call with a pen created from a solid brush. The line between the same points is drawn differently. To see this, create a windows forms project in VS.NE...more >>

Re-designing tabcontrol
Posted by Fatih BOY at 10/30/2003 4:18:11 PM
Hi, Does anyone knows how to handle painting of Tabcontrol??! I've override OnPaint and WndProc ( with m.Msg==WM_NCPAINT) functions, but doesn't work! Thanks, Fatih BOY ...more >>

bit depth
Posted by Robi Khan at 10/30/2003 3:38:45 PM
Is there any way from managed code to determine the bit depth of a given display? We need to do this from Internet deployed controls, so interop is not an option. ...more >>

DateTimePicker OnPaint
Posted by decrypted at 10/30/2003 2:32:05 PM
I am trying to paint a flatstyle for the DateTimePicker...i am able to draw a rectangle inside the box, but the graphics object's bounds seem to start just inside the border of the control...so how can I expand the graphics object drawing region so I can draw my rectangle like 2 pixles larger and...more >>

A better circle?
Posted by john at 10/30/2003 2:30:52 PM
I have created a round form, using the Graphics.DrawEllipse () method in the Pain event of the form. This works fine, but the edges of my circle are very jagged, not smooth, and looks pretty bad. Is there a way to create a clean smooth circle edge in GDI+? I've played with the Smoothin...more >>



Copying part of image to itself
Posted by Benjamin Lukner at 10/30/2003 12:16:44 PM
Hi! I've build a control that bases on the Signature Capture Sample from Microsoft(load bitmap, print on bitmap, paint on control). Works pretty fine. But now I want to copy a part of the displayed image to itself at another position. For example: Bitmap is ca. 100x100. I printed text on...more >>

GraphicsPath.Isvisible
Posted by Crirus at 10/29/2003 6:43:18 PM
Hi Is that true that this isVisible method is incredible slow? Seems that my app is much slower with only this added as a condition to draw something Crirus ...more >>

Set region on a bitmap
Posted by Crirus at 10/29/2003 6:10:25 PM
Hello I draw a bitmap pixel by pixel There is a way to set region on the bitmap where the setpixel take effect and regions where not? Thanks, Crirus ...more >>

Check Printer Status??? How??
Posted by Vanessa at 10/29/2003 4:21:27 PM
Hi, I'm trying to select a printer in the system printers collection. I'm able to do this. However, if the printer is a network printer and happens that this printer is not on or not ready, I won't be able to know and I try to print a document I will get an error. Is there anyway that I ca...more >>

Cant get correct colour using System.Drawing
Posted by MLynch at 10/29/2003 2:36:29 PM
Hi, I want to fill a rectangle with a custom colour (purple-ish). however when the generated gif file is viewed the colour in the rectangle is stippled which seems to me to indicate it saved in as a low res colour. (Sample code below) What am I missing here? Do I need to work with Bitmap p...more >>

X-Axis Offset?
Posted by Zach Nelson at 10/29/2003 12:14:25 PM
I'm working on a control that simulates a timeline and it supports "zooming" so you can drill down and get finer detail along the timeline. I accomplish this by always drawing the same tick marks starting at 0 on the x axis, but I use Graphics.ScaleTransform(zoomfactorX, 1F) to scale the entire d...more >>

PageSettings.Landscape
Posted by Ori at 10/29/2003 11:54:57 AM
I am setting PageSettings.Landscape = True in PrintPage event. I have verified its value and it still prints in Portrait. Any ideas? ...more >>

[Bob Powell] Can you talk about the new Framework yet?
Posted by Chris Dunaway at 10/29/2003 9:27:52 AM
Since MS has made available the Whidbey alpha on the subscriber downloads site, are you able to talk about the new stuff yet? I also noticed some interesting new classes in the framework (such as the BufferedGraphics class). Can you give us an evaluation of the changes to the graphics classes...more >>

Scrolling User Control using AutoScroll
Posted by johri_rahul NO[at]SPAM hotmail.com at 10/29/2003 2:58:44 AM
I had developed a user control which represents a grid format using GDI+. If the grid size increases the control size, i get scroll bar (using AutScroll feature of User Control) and am able to scroll the grid using the offset of scroll. But when I scroll the form, the grid gets a bit distorted....more >>

Fitting the drawing to a Panel
Posted by amarnath at 10/28/2003 10:51:22 PM
Hi, I am facing a problem fitting the rectangle into a panel. I am drawing a rectangle on a panel. I have co- ordinate values in mm and I need the best fit in a panel irrespective of what the values in mm are. Should I use the PageScale property or should I need to use any method to wor...more >>

printing to the printer from right to left with vb.net
Posted by yulyos at 10/28/2003 10:28:45 PM
Hi, how do i print to the printer from right to left with vb.net example in vb6: Printer.RightToLeft = True Printer.Print "abcd" Printer.EndDoc please send me small example thanking you in advance From: yulyos@yahoo.com ...more >>

difficult CAO remoting problem with NAT router
Posted by allen at 10/28/2003 10:11:31 PM
please don't answer this without reading the entire message. I'm not asking about machinename. I am trying to figure out a way to have my remoting system deal with being behind a firewall, a NAT router or other various network devices. the problem is that when using a CAO will force the ...more >>

General GDI+ Exception thrown when loading and saving the same image file
Posted by Claus Hansen at 10/28/2003 1:34:28 PM
If I load a bitmap file using the Bitmap constructor Bitmap(filename) and afterwards try to save it (using the Bitmap.Save method) a general exception i thrown from the GDI+ kernel. I seems like the file/stream is open and for that reason can't be saved. Any suggestions (this is properly quite...more >>

DrawString problem
Posted by Saeid at 10/28/2003 5:13:39 AM
Hi All, I'm trying to print two texts in the same position with different font sizes on a graphics object (say a printer or a picturebox) and I'm using the format string object to remove spaces around a character but it doesn't work. Private Sub PictureBox1_Paint(ByVal sender As Ob...more >>

Printing in printer from right to left?
Posted by elik99 NO[at]SPAM hotmail.com at 10/28/2003 12:51:14 AM
How to print text from right to left, i need to print the same reports in english, hebrew and arabic. Thanks...more >>

print
Posted by Oferm NO[at]SPAM court.gov.il at 10/27/2003 11:14:12 PM
Hi, I'am c# programer. i want to know if somebody know jow to print in windows application. It's mean that i have form with lables that present parameters from xml. i want to print this form....more >>

Drawlines with a non-solid brush vs. Drawlines with a solid brush.
Posted by Brock at 10/27/2003 10:20:29 AM
I am seeing inconsistent drawing behavior when calling Graphics.DrawLines() with a pen created from a non solid brush vs. a Graphics.Drawlines() call with a pen created from a solid brush. The line between the same points is drawn differently. To see this, create a windows forms project in VS.NE...more >>

outofMemoryExciption
Posted by ismail Awadat at 10/27/2003 1:24:38 AM
Out Of Memory Exception Is occures when i run my C# Code to Draw a A menu My bee i can run the code once ot twies but after that it will give me out of memory. and the problem is that i have eangh Memory to run a .Net So if there Any one have a Suggestion Please Help Me Fast ...more >>

Add pixels to jpg
Posted by tanalbit NO[at]SPAM aol.com at 10/26/2003 7:25:26 PM
I would like to write a utility which takes a 1600 x 1200 jpg and adds 200 pictures of horizontal whitespace to result in 1800 x 1200. This is so that my photo processor doesn't crop out the top and bottom of my picture on a 4 x 6 print. So far I've found techniques to crop pictures and to st...more >>

ANN: open source NZui v0.1 released
Posted by Joannes Vermorel at 10/26/2003 4:22:33 PM
The first version of NZui, an open source Zoomable User Interface has been released and is available at http://www.vermorel.com/opensource/. Zoomable interface are an alternative to the classical "click and jump" hyperlinked navigation. The objective of NZui is to provide a fluid and smooth na...more >>

Help With DrawString Functionality
Posted by Frank Buchan at 10/26/2003 8:17:18 AM
I'm using DrawSting to draw variable length text to a defined region on a bitmap, which ultimately becomes a legend. For the most part it works perfectly. But the variable length of the strings is likely to give me fits some time in the future. My concern is that at some point a user will enter ...more >>

How to load custom fonts?
Posted by Lewis Moten at 10/26/2003 7:28:45 AM
I added a file called "animals_.ttf" to my web project. I'm trying to load the font, but have not been successful. Here is what I have done so far: _Font = New Font(Server.MapPath("Animals_.ttf"), 24, FontStyle.Regular, GraphicsUnit.Pixel) I would prefer to do this without asking the w...more >>

Handling with dimentia (And DIB's)
Posted by Nak at 10/25/2003 11:07:32 PM
Hi there, I am having great fun with Pointers or Handlers or whatever you want to call them in VB.NET. WHat I am attempting to do is create a .NET image by using the FreeImage library. On the site they clear say, ------------------------ How do I convert a FreeImage image to a HBITM...more >>

Quick Image Blurring
Posted by Jason Ho at 10/25/2003 10:42:15 PM
Hello, To get a blurred photo, many people may think of using blurring filter. And I am now using image scaling to achieve this in a quick manner. Firstly, scale down an image to very small size and then scale up to original size using DrawImage( ) and HighQualityBubic interpolation method ...more >>

Only Pro can help...
Posted by cql60 at 10/25/2003 3:48:27 PM
Hi all PRO out there, Does any body know how to draw a Circular image or ellipse image or even star shape image base on Existing image. Any help is deeply appreciated. Have a good weekend all of you. Thanks you all so much Kate Luu ...more >>

DIB
Posted by Nak at 10/23/2003 8:43:19 PM
Hi there, Excuse my ignorance, but I am crap when it comes to understanding computer graphics. I am attempting to create a plugin in for my application that uses the FreeImage graphics library, I have got the library returning what I *believe* is a handle to a DIB, how do I get this into ...more >>

VB.NET and Jpeg compression
Posted by tschiffbauer NO[at]SPAM crossoft.com at 10/23/2003 12:25:08 PM
I cant seem to get the encoder stuff working for my program. How can I increase the quality of the JPEG? Below is my program: <%@ Page language="vb" %> <%@ Import Namespace="System.Drawing" %> <%@ Import Namespace="System.Drawing.Imaging" %> <%@ Import Namespace="System.Drawing.Drawing2D" %...more >>

A generic error occurred in GDI+
Posted by Ben NO[at]SPAM Heptec.com at 10/23/2003 12:00:21 PM
I have a table in sql that contains the .gif file names for a catalog. I am writing a report to see if the images are the right expected size. The problem that I am having is that when I select 3 or more rows of data in sql I get the error below, but when I select 1 or two rows the every thing w...more >>

Create a new PropertyItem
Posted by Fraser Baldwin at 10/23/2003 9:48:14 AM
How do I add a new PropertyItem to an image object? I tried to "New System.Drawing.Imaging.PropertyItem" But that gives me an error because New() is private? Maybe there is a better way. All I want to do is set the transparency colour of the image. Cheers Fraser ...more >>

PNG Browser Test
Posted by Fred Chateau at 10/22/2003 2:25:15 PM
I can't believe they didn't include an HttpBrowserCapabilities PNG property in the .NET Framework. Does anyone know which browser version first supported PNG graphics, so I can request the browser version in order to determine whether to send a PNG? Also, since I'm generating the PNG image i...more >>

My Drawings disapear
Posted by Peter at 10/22/2003 9:57:54 AM
Why is it that when I draw a rectangle, circle or some other shape using System.Drawing.Graphics they dispear when I resise the form, or when other windows apear in front of the one of my aplication ? Tanks...more >>

Alpha info
Posted by Crirus at 10/22/2003 8:46:15 AM
Hi there There is a way to obtain only alpha values from an image in some NET attribute clas or something? Crirus ...more >>

please help me.....
Posted by Luca at 10/21/2003 7:59:20 PM
I'm a beginner in visual basic .net. I'm doing my first application .... I have and address in a string ( c:\photoes\1.jpg ... or c:\photoes\1.bmp ) I'd like to show the picture then i click on a buttom. Thank you. ...more >>

Setting individual pixels
Posted by Dan Ritchie at 10/21/2003 5:57:10 PM
Hi all. I'm experimenting with VB.net for the first time. Long time VB 4-6 user. Since the pset methods seem to have been removed, as well as references to HDCs, I'm only assuming there is some way of getting pixels on the screen. My first go at it seems to be some sort of encapsuliz...more >>

Invalid Parameter
Posted by decrypted at 10/21/2003 4:55:12 PM
Ok...I have been having problem with GDI+ for months now and can not solve a single one. Here is one scenario that is driving me NUTS Stack Trace: Error Message: Invalid parameter used. _____________________________________________ Exception: System.ArgumentException: Invalid paramete...more >>

HTML Image buttons
Posted by itsme at 10/21/2003 2:44:42 PM
Hello, I am using HTML image buttons and when I am trying to view them from browser they are appearing with a border. I tried using border="0" with the tag, but it is deprecated. <input border="0" src="http://aspweb.w2k.cis.ksu.edu/vivek/images/next.jpg" type="image" onclick="retur...more >>

NEED TO MERGE IMAGES
Posted by CoolCommie NO[at]SPAM yahoo.com at 10/21/2003 1:53:17 PM
Hello, Here is a problem: Inputs: I have a multi-page tiff image Outputs: A one page image where all pages from the original tiff are merged from left to right with blue rectangle around every page. I do not need to save the image just display it in a picture box. Many thanks......more >>

Implementing Bitmap rotating
Posted by Crirus at 10/21/2003 11:31:22 AM
Hello I need to implement rotation... Beside this, I want to know if this can be a serious speed problem on an aplication... to choose between loading image rotated or rotating in the app. Thanks, Crirus ...more >>

GDI+ and ToolTip object
Posted by Kevin at 10/21/2003 8:04:59 AM
I have created a custom control that draws the control's interface in the Draw image. I have associated a Tool Tip provider, but cannot get it to draw on the screen. Any ideas on what I am doing wrong? ...more >>

how to draw text on a picture box vertically
Posted by ramakrishnamaguluri at 10/20/2003 3:19:27 PM
hi friends i want to know how to write some text vertically on the picture box in compact framework using VB.Net. i need this to write name for y-Axis on a graph which is drawn on a picture box. thanku ramakrishna ...more >>

Control Z order
Posted by fragget at 10/20/2003 1:26:37 PM
hello- i want to set the z-order of a specific control to that of the control i clicked on minus 1. i see the bringtofront and sendtoback methods. is there anyway to get a controls z-index and set its z-index as well? thanks - fg ...more >>

StartCap, EndCap, ...
Posted by Max at 10/20/2003 9:21:45 AM
Suppose we select a pen Pen blackPen = new Pen(Color.Black, 1); blackPen.EndCap=System.Drawing.Drawing2D.LineCap.ArrowAnchor; and draw a line with that pen. The Arrow (or any other Cap I tried) is drawn very very small. Practically invisible. It depends on the width of the pen....more >>


DevelopmentNow Blog