all groups > dotnet drawing api > december 2005 > threads for december 1 - 7, 2005
Filter by week: 1 2 3 4 5
DrawString and ExternalException
Posted by lukasz at 12/7/2005 10:16:23 PM
If ctl is a System.Windows.Forms.ListControl, when the following lines:
using (SolidBrush br2 = new SolidBrush(fore)) {
g.DrawString(text, ctl.Font, br2, x2 + 10, rect.Top);
}
can throw an ExternalException (A generic error occurred in GDI+)?... more >>
Copying Format1bppIndexed Images
Posted by Tom Bean at 12/7/2005 4:00:30 PM
My application breaks multi-page faxes into a collection of images, one for
each page. The faxes are saved by our fax software as multi-frame TIFFs
with a pixel format of Format1bppIndexed.
While processing the pages, I am creating a new Bitmap of each frame and
found the new Bitmap had a ... more >>
uniscribe printing problem
Posted by Lloyd Dupont at 12/7/2005 9:56:13 AM
In my (C# 2.0) application I have implemented international rich text
rendering with uniscribe.
It paint well on the screen.
It's when I try to print or print preview I experience trouble.
PrintPreview doesn't work at all. I just have a blank page.
Printing kind of work but I have to sca... more >>
programming a vector drawing tool?
Posted by Mad Scientist Jr at 12/6/2005 11:53:53 AM
I am looking to make a homegrown vector drawing tool, similar to making
vector drawings in Word or Powerpoint. It should be easy to use and
intuitive, like Word or the old MacDraw. I want to make it easy for
beginners, as opposed to something harder or more involved like
Illustrator or Flash...
... more >>
GDI or not
Posted by Hennie7863 at 12/6/2005 11:30:34 AM
Hi i wan to build an application to show some stuff in a graphical way.
I'm a datwarehousedeveloper and i want to build a graphical interface
for representing the facts and dimensions. I want to create context
menu's and i want to drill down on a dimension or a fact. It should be
possible to sho... more >>
DrawCurve goes too high in percentage graph
Posted by mottebelke NO[at]SPAM hotmail.com at 12/6/2005 6:03:33 AM
I'm currently drawing a line graph using the DrawCurve method. So I
have an array of points through which the line should be drawn. This is
all going well, but there is an issue I can't come round.
The values in the graph are percentages (0-100%). But if point 1 is a
low percentage (say 50%), ... more >>
Image Rotation/Shift/clipping
Posted by Sajjad at 12/6/2005 2:51:30 AM
Hi,
I am trying to write a small app that would allow me to fix up pages that i
have scanned (scanned book). Durring scanning its harder to keep page fixed
etc.
To make my life easy i thought write a quick app to do this thing repeatdly.
But i am facing some wierd problem with scalling o... more >>
1 Bit Image Conversion
Posted by Charles A. Lackman at 12/5/2005 4:47:57 PM
Hello,
I am comverting a TIF to 1 bit and this works really well for all that I
need it for, except for the amount of time it takes to accomplish this. On
a 3 page Tif it is taking over 5 seconds on my computer and over 8 on
others. I know this is small fries, but I really need to speed u... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
ToolTip OnPaint Overrides
Posted by Ron at 12/5/2005 10:55:02 AM
Hello,
I have a panel that I create at runtime which is docked at the top of my
form and then filled in with a gradient using the Overrides OnPaint method.
Everything seems to work jus fine, the gradient is drawn correctly as well as
any text too. However, when hovering over one of the mi... more >>
DrawString and Font Widths
Posted by Shawn B. at 12/4/2005 11:16:57 PM
Greetings,
I am trying to draw text, character by character, using GDI+. When I use
Graphics.MeasureString() and add the result to my X coordinate and draw the
character, I get a completely different spacing between characters than when
I use Graphics.DrawString().
My specific question ... more >>
Using an aspx module for an <img> src
Posted by el_Bilo at 12/4/2005 9:45:52 PM
I'm trying to read a jpg file into a buffer then respond back to a browser
client with the image
In the browser page I have <img src="imageGenerator.aspx">
Here's the code I'm trying to get to work. It doesn't all I get in the
browser is an image placeholder.
Imports System.drawing.Imag... more >>
[BUG?] How to save an image? Bob Powel!!
Posted by Lloyd Dupont at 12/3/2005 8:24:44 PM
I have .NET 2.0.
I copy paste a JPEG image in from Word into my control.
Later on I want to save this picture and try the following code:
Image anImg; // pasted JPEG
MemoryStream ms = new MemoryStream();
anImg.Save(ms, anImg.RawFormat);
this always throw an argument null exception (encod... more >>
Moving GraphicsPath object with my mouse
Posted by Stéphane at 12/3/2005 10:09:02 AM
Hi,
I recently started a little project on my own which purpose is the
following:
- Having "furniture" modules displayed on screen by pressing specific
pushbuttons.
- Being able to select modules by the mean of a mouse click and then move
them.
- Being able to ins... more >>
drawing multiple imagefiles on screen
Posted by Shadowrift at 12/3/2005 12:10:02 AM
Hi there, im converting my MFC tetris to .net
with mfc you can bitblt an image many times to the screen in different
locations. can one do this with .Net? im stuck.
m using windows form application in c++ and im trying to display a graphic
file (bmp) to the form. The only catch is i do not w... more >>
I can't copy a picture to word!
Posted by Lloyd Dupont at 12/3/2005 12:00:00 AM
I have a copy code as below. Which works well inside my application.
But if I try to copy a picture into word, it always fail!
Any tips?
=3D=3D=3D=3D=3D
public static void SetPasteboard(Object obj)
{
IDataObject ido =3D new DataObject();
ido.SetData(obj);
if (obj is Bitmap)
... more >>
GraphicsPath cut hole in ellipse
Posted by Justin Echternach at 12/2/2005 4:45:16 PM
Hi All,
I am trying to create a whole note (musical note) using a graphics path. A
whole note is just a filled ellipse with a smaller slightly rotated ellipse
cut out of its center. Is it possible to do this using a GraphicsPath
object? I was thinking I would create two ellipses. Rotate... more >>
Cannot Save Metafile as a Metafile! Code included.
Posted by elziko at 12/2/2005 11:52:27 AM
I have an System.Drawing.Imaging.Metafile and I need to save it to any
different formats. This is fine since I can pass in an ImageFormat into the
Metafile's Save method. However, if I try and save it as a metafile it
actual creates a PNG. Heres a tiny bit of code that generates a sample
metafil... more >>
|