all groups > dotnet drawing api > october 2005
Filter by week: 1 2 3 4 5
Develop custom scroll bar
Posted by Ritesh Tijoriwala at 10/31/2005 4:50:05 PM
I want to develop custom scroll bar and use it in place of the existing
scroll bar on controls e.g. DataGridView, ListBox.
Any sample/demo that shows this feature?... more >>
HELP: Display 16 bit bitmap
Posted by Hank at 10/31/2005 10:25:05 AM
Hi experts:
I got an image from the image capturing device which is 16 bit bitmap with
big endian. I am using C# to get this image and when I try to display it, I
got blur color image which is not right, it is supposed to be black and
white image as I did for 8 bit bitmap image.
Following is... more >>
OpenType font support in .NET 2.0?
Posted by Ben Amada at 10/31/2005 2:03:45 AM
Hello,
I've been reading that OpenType fonts (specifically those from Adobe) are
not supported in .NET or by GDI+.
Does anyone know if .NET v2.0 will support these fonts?
Thank you,
Ben
... more >>
Outline of a line with Line caps
Posted by J at 10/31/2005 12:00:00 AM
Hi,
I'm trying to show a hover/selected effect arround the objects I'm drawing.
Everything is working fine for the rest of my shapes but I'm having troubles
with my lines.
Heres my code:
Draw(Graphics g){
......
using(Pen P = new Pen(this.LineColour,this.LineWidth)){
P.StartCap =... more >>
A strange behaviour : GetTextExtentPoint32
Posted by Victor at 10/30/2005 12:57:24 PM
Hi everybody,
my problem is as follows :
VS.NET 2003 C++ MFC Application
I try to figure out a screen size of a string by means of the
GetTextExtentPoint32(HDC,LPCTSTR,int,LPSIZE). Surprisingly for me, this
function reports the same size for the string displayed with different
font sizes... more >>
Graphics.DrawString using bold
Posted by Dries De Rudder at 10/30/2005 12:00:00 AM
Hi,
i want to draw a piece of text with some words in bold.
does anyone has an idea how to do this using the Graphics object?
(i want to draw the piece of text to an PrintDocument)
thx Dries... more >>
Is there anyway to slightly 'smooth' a polygon
Posted by B. Chernick at 10/29/2005 6:30:02 PM
(I think I know the basics of Dot Net graphics. Please excuse me if I don't
have all the terminology down yet.)
My problem is this. I'm using DrawPolygon to create a number of simple
shapes including squares and triangles. The edges of these shapes conform to
the limits of the object tha... more >>
zoom in on a bmp
Posted by gv at 10/28/2005 1:21:49 PM
Hi all,
using VB.NET 2003
Trying to zoom in on a bmp that is in a picturebox in the click event?
Can someone please help! I am able to get the mouse codinates
with the mouse move event below.
This code doesn't work correctly, forgot where I got it from so sorry for
not
listing the pe... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
DRAW IMAGE with "double" TRANSPARENCY
Posted by pamelafluente NO[at]SPAM libero.it at 10/27/2005 7:53:45 AM
Hi guys,
I am drawing an image on a graphics object:
Graphics.DrawImage(Bitmap, RectangleDestination , RectangleSource ,
GraphicsUnit.Pixel)
I would like that:
1) the whole drawn image be partially transparent, let's say 65% and,
at the same time,
2) for just 1 color (say color.white... more >>
Scrolling big image on screen
Posted by JocK at 10/27/2005 2:55:17 AM
Hello everybody,
I am C#/.NET newbie.
I have been tasked to write a graphics application using C#.
The application needs to visualize an image that is narrow and very
long. Typically images have width=1024 pixel and height= 40000 pixel.
Of course is impossible to completely visualize such an ... more >>
Image FromStream GDI+ Error with PictureBox
Posted by Matthew at 10/26/2005 7:32:39 PM
Howdy All,
I have an object model that stores images for use in a graphics
application. Rather than reading the images and keeping them in memory,
which has a HUGE footprint, I instead read the file into an array of
bytes, convert the array of bytes into a memory stream, then use the
Image.Fr... more >>
Font compatibility with Dot Net Print API
Posted by scottj NO[at]SPAM newsgroups.nospam at 10/26/2005 4:57:25 PM
Hi:
We have a customer that has provided a custom true type font that they want
us to use when printing documents in the application we are building for
them. This font prints just fine from most Windows applications such as
wordpad, and also from a test app that uses the Win32 print API. Howeve... more >>
Image.Save as jpeg with and without EncoderParameters
Posted by CuriousGeorge at 10/26/2005 9:48:07 AM
I'm curious how the framework handles writing a bitmap out in jpeg format
when I do not specify a quality level. Does anyone know what compression
level it uses in code like this:
Bitmap bmp = new Bitmap("test.bmp");
bmp.Save("test.jpg", ImageFormat.Jpeg);
I do know how to use EncoderPar... more >>
z-order control
Posted by Chris Y at 10/26/2005 12:00:00 AM
I have a Panel with a Label. Any Graphics drawn is always below the Label.
How do I get my Graphics to go over the Forms Control?
I see a BringToFront method for the Label class but it doesn't look like the
appropriate one to use.
Thanks.
... more >>
Can an Absolute Color Be Drawn?
Posted by yotaxp NO[at]SPAM gmail.com at 10/25/2005 8:58:37 PM
Is there any way to fill a GraphicsPath or Region with a color,
ignoring the image beneath? Hmm, that's a little confusing, how
about... Can I instruct the Graphics object to avoid overlaying
semi-transparent colors? I would like to actually draw
Color.Transparent, or a semi-transparent color ... more >>
Beginner's question
Posted by B. Chernick at 10/25/2005 7:15:01 AM
I am trying to capture an image from a picturebox pb1, the first step in
creating a print routine.
'Dim g1 As Graphics = Me.CreateGraphics
Dim g1 As Graphics = Graphics.FromImage(pb1.Image)
Dim MyImage As New Bitmap(Me.pb1.Width, Me.pb1.Height, g1)
MyImage.Save("c:\abc.bmp")
If I us... more >>
Render HTML to image?
Posted by William Sullivan at 10/25/2005 6:28:04 AM
Anyone? Bueller? Seriously, any way to capture output from a browser
control and render the stream to an image? TIA.... more >>
Including ICC profile when saving a image using the bitmap object?
Posted by JohnnyGr at 10/25/2005 4:18:04 AM
Is it possible to include a ICC profile when saving a image?
Im having some troubles with colors when opening a image, changing something
and then saving the image to a new output image... wich results in that i have to
open the image in photoshop and apply the ICC profile...
If anyone have a... more >>
image.fromstream throws argument exception. Urgent
Posted by Peter at 10/24/2005 8:39:02 PM
I have asp.net code using C# that will convert tif file into jpg and then it
display them. The program works on my machine and Dev machine with Window XP
professional. When I deploy the program on test machine (window 2003 server)
I get error:
Argument Exception Invalid parameter used"
T... more >>
Drawing Area
Posted by Sunil Batra at 10/24/2005 4:57:34 PM
Dear Sir,
I want to set the drawing area and impliment scrollbars in it.
please tell me the basics of setting a drawing area.
... more >>
How to get a LOGFONT from an HFONT
Posted by Lloyd Dupont at 10/24/2005 4:41:41 PM
I am using some COM interface to create some HFONT.
Trouble is, the font created with this COM interface should be release with
this COM intrface.
And I don't see how I could make it work nicely with my ManagedC++ wrapper.
The solution I though of is:
when the COM interface create this refer... more >>
How to import a given COM interface in VS.NET?
Posted by Lloyd Dupont at 10/24/2005 4:00:48 PM
I'am using C# and I would like to use the INLangFontLink interface:
http://msdn.microsoft.com/library/default.asp?url=/workshop/misc/mlang/reference/ifaces/imlangfontlink/imlangfontlink.asp
I tryed to add a COM interface reference to the project but the add
reference dialog box didn't show me ... more >>
scrolling text buffer
Posted by Steve at 10/24/2005 10:01:55 AM
Hi
I would like a simple scrolling text buffer consisting of the last N (say
10) lines of a text stream on the main form of little windows forms test app
I need to knock up.
Is there a quick way of making a multiline textbox into a scrolling text
buffer with a fixed number of lines histo... more >>
DrawImage and NearestNeighbor bug?
Posted by Jelle van der Beek at 10/24/2005 3:43:03 AM
Hi,
I am drawing an image, stretched, with interpolation set to NearestNeighbor.
I want to be able to count the pixels and all. There seems to be a bug in the
scaling in this interpolation mode. I actually think it occurs in all modes,
but it is best visible in this mode. Somebody else has ... more >>
Embedded Resources - Spaces in Executing Assembly Name
Posted by Dennis at 10/23/2005 10:38:01 AM
I just found out that if you have a project that you have named with a space
such as "My Project", getting embedded resources doesn't work if you are
getting them with GetManifestResourceStream(Name) method. If I change "My
Project" to "MyProject", it works fine.
--
Dennis in Houston... more >>
Ever increasing Memory usage!!!
Posted by TheIlliterate at 10/22/2005 12:00:00 AM
Hi All
Greetings to all of you. I am a newbie. I am trying to build a
application in C# in which I try to Overlay Bitmap over Video. I am
able to display the bitmap onto video. But my problem arises when
have to Display some rapidly changing Bitmap onto screen(Consider
want to Display time ... more >>
wmf to gif while also copying the transparency / background
Posted by Ian Jagger at 10/21/2005 12:15:01 PM
Hi,
I am trying to convert a group of wmf files to gif files. Easy you'd think?
I'm using the following code:
Image img = Image.FromFile (this.tbxFilename.Text);
string filename = this.tbxFilename.Text.Replace ("wmf", "gif");
img.Save (filename, ImageFormat.Gif);
When I look at t... more >>
Making Controls use my Graphics object
Posted by Chris Y at 10/21/2005 12:00:00 AM
I have a control derived from Label and I added a few more properties. The
new control is located in (Added to) a Panel.
I want to draw this control as part of my Panel's Paint event, so as to
share the same clipping and double-buffering characteristics. How can I
change the Graphics obje... more >>
Multipage Tiffs and Image Rotation
Posted by Nick at 10/20/2005 5:54:01 PM
Hello all,
I have a program using VB.Net that goes that cycles through multipage Tiff
images and automatically prints them out. Recently a problem was discovered
by a client in which it was found that for some of the Tiffs only the first
page printed. Looking at the code, I discovered tha... more >>
want to fill colors in diffrent sorounding shapes over particular selected shape with help of mouse in vb.net
Posted by parmod at 10/19/2005 10:28:54 PM
Sir I want to fill colors in diffrent sorounding (and or overlaping)
shapes over particular selected shape with help of mouse in vb.net over
Picturebox i.e color should fill only inside the desired area/shape
rather than the whole picturebox.
... more >>
Redrawing a picturebox control
Posted by jason NO[at]SPAM dive-master.org at 10/19/2005 8:48:00 AM
HI all,
I have a application that places a number of strings onto
a picturebox using a graphics handle to the picturebox,
using the following code:
Dim g As Graphics = PictureBox1.CreateGraphics
Dim bar As New clsBarCode128
Try
Dim fnt As New Font("Arial", 18, FontStyle.Regular,
Grap... more >>
Problem printing objects with the same layout of the screen
Posted by Giò at 10/18/2005 12:00:00 AM
How I can draw a generic control on the graphical object of printing, in the
same way in which it is visualized on the screen? I cannot change the
"graphics" in the method "onPaint" and, if I try to call the created method
of the onPaint using a new one "paintEventArgs" on the "graphics" of
pri... more >>
Printing Server Side in ASP.net
Posted by Raymond at 10/17/2005 9:32:02 AM
Trying to print server side in ASP.net. Set up a PrinterSettings object as
follows:
PrintDocument pd = new PrintDocument();
pd.PrinterSettings.PrinterName = "\\blah\blah";
pd.PrinterSettings. etc...
pd.IsValid() returns false when deployed to server...?!
Using impersonation in the sit... more >>
What is the ImageFormat of an existing Image
Posted by moWhite at 10/16/2005 6:37:02 AM
I get a Drawing.Image back from a web server.
I don't know if it is a *.png, *.jpg, or *.bmp ImageFormat.
I want to save it to a file in its origional format with
Image.Save("c:\test.???").
How can I get either the ImageFormat for this object or appropriate file
extension?
Thanks, Ri... more >>
HIMETRIC (1 unit = 0.01 mm) but under .NET
Posted by Mr.Cyber at 10/15/2005 7:28:02 AM
Hi, everybody!
I need to draw/build EMF file with accuracy as high as possible. Couple
years ago I dealt with task like this but then I lived in pure Win32 API and
GDI World. And everything was Perfectly Fine. Now I have to solve a task
connected with graphic again but under .NET. How Can I g... more >>
Determining the distance between a line and a point
Posted by Ricardo Furtado at 10/15/2005 6:35:01 AM
I'm programming in VB .Net but this might be more a trigonometry problem.
i've been searching every maths book i can find and i haven't found anything
i can use with VB.
So, what i need to know is how to calculate the distance, between a line
(defined by two points) and a third point, to that... more >>
Create Bitmap from address
Posted by Tim Bücker at 10/14/2005 12:00:00 AM
Hello.
I am calling IVMRWindowlessControl9::GetCurrentImage(out addr) with addr =
Address of a pointer to a BYTE that will receive the DIB.
But this only as background information. My question is how to create a
bitmap if one is having only this address.
In C# the bitmap constructor contain... more >>
Icon transparency after Serialization
Posted by Mike_IntermediateVB at 10/13/2005 9:17:20 PM
I am developing an application that stores files in a database, Along with
the file I'd like to store the files Icon. I have created a File object that
I can serialize, compress and write to the blob field of a database. This is
working quite well, however for the last week I have been trying ... more >>
c# How get an IntPtr of Image?
Posted by ciukred NO[at]SPAM lycos.it at 10/13/2005 7:18:37 AM
Hi everybody!!
A parameter of a function need a IntPtr of an Image
(System.Drawing.Image).
How can obtain this in c#?
thanks!!!
Red
... more >>
vb.net directx 9 book
Posted by Peter Proost at 10/13/2005 12:00:00 AM
Hi, I'm already an "experienced" vb.net programmer but now I want to learn
directx 9 with vb.net, does anyone know some good books to pick up for
learning it. I already found these 2, does anyone know if these are good
books?
ISBN: 1590594010 .Net Game programming in vb.net (Apress)
David wel... more >>
Printing an image in the browser page
Posted by le_mo_mo NO[at]SPAM yahoo.com at 10/12/2005 7:56:01 PM
Hi,
How do you print an barcode gif image to the printer without any other
information (Header, footer, link, etc.)
Thanks,
Mo
... more >>
Transparent Control Flicker When Draw a Rectangle on it
Posted by BLM at 10/12/2005 6:01:01 AM
Helllo
I have some code to make a control transparent just like a Toplavel
tranparent form
But my problem is when I draw a circle on it it is Flicking very much
the code is given below please help me how i draw a circle on it without
flicking
using System;
using System.Collections.... more >>
Avoid 2 calls of mouse move
Posted by Boni at 10/11/2005 11:24:42 AM
Dear all,
I have a picturebox and handle MouseMove event in it.
MyHandle(.) Handles Mybase.MouseMove
DoHardAndLongCalculation
end sub
What I see, is, that MouseMove call is not waiting until the calculation
finished, it can be just called second time. Currently I do following:
dim Flag a... more >>
Getting a Color from an Image
Posted by tony010409020622 NO[at]SPAM spamthis NO[at]SPAM hotmail.com at 10/11/2005 12:00:00 AM
This seems like it SHOULD be simple. I'm displaying an image in an
ImageBox on a WebForm. How do I find out the color of a pixel under
the cursor (or in response to a mouse click) ? I've looked through
system.drawing, system,drawing.design, and system.drawing.drawing2d,
but no luck.
Tha... more >>
How repaint unmanaged window
Posted by BLM at 10/10/2005 11:02:01 PM
Hello
I want to repaint a unmanaged window (IVideoWindow) I have tried to do it
by redrawwindow API but it's not work my code is given below -
RECT oRECT = new RECT();
RedrawWindow(hWndVideoWindow, ref oRECT, 0, RDW_INVALIDATE);
Anybody could help me please how can I redraw the win... more >>
Right alignment with clipped text
Posted by Pizzi at 10/10/2005 4:45:23 AM
Hi guys
I have to draw a string right aligned. I use Graphics.DrawString() with
StringFormat.Alignment = Far.
Everything works fine except when the string has to be clipped. In this
case the alignemnt get left.
For example, the text "Hallo World" right aligned should be clipped as
"lo Worl... more >>
Form Flicker Problem Urgent Please
Posted by BLM at 10/10/2005 4:45:02 AM
There is a panel that contain a child window IVideowindow we want to draw
shape on IVideowindow window for that we create graphics object by handle of
the IVideowindow in Paint event and draw the shape on that.
we need to draw the shape on mouse event for that we call the invalidate of
... more >>
GetHenhmetafile .. releasing result?
Posted by smeghead1982 NO[at]SPAM hotmail.com at 10/9/2005 7:49:25 PM
Hi,
Ive got an application which creates a metafile in memory (doesnt use
files) and then tries to draw it into a pdf document. It uses the
GdipEmfToWmfBits method to build a byte array representing the metafile
object and then draws that to the graphic provided by Siberix whom we
use to cre... more >>
Split image into seperate regions / isolation
Posted by cwertman NO[at]SPAM yahoo.com at 10/9/2005 7:40:46 PM
Ok a graphics programmer I am not, but I really need to figure this one
out and I am hoping to soliciot some suggestions here.
I have an image /images that I want to extract individual continous
regions (they may or may not be the same size)
The order they are in is important, so what I need... more >>
Flicker Problem
Posted by Eduardo Fonseca B. at 10/9/2005 9:16:02 AM
I'Hi, i'm developing an own game developing engine and I'm having trouble
with flickering I've tried to change the form's controlStyle and usie double
buffering
but still I have the problem.
The source code can be downloaded here :
http://efonsecab.tripod.com/PortafolioTrabajos/MyGameEngine.z... more >>
|