all groups > dotnet drawing api > november 2003
Filter by week: 1 2 3 4 5
Adding buttons to the form's title bar
Posted by Picho at 11/30/2003 6:03:04 PM
Hi all,
Is there any .NET way (I am not rulling out API usage) to add button(s) to a
form's title bar?
I found some non-.NET solutions that did actually work in VB6 but not in the
..NET forms...
I tried painting, but the paintaing area provided by the form is only the
client area - no vi... more >>
Overlay and scrolling
Posted by dave at unifact dot com at 11/30/2003 5:37:55 PM
Hi,
I have a control which I'm doing all the drawing. The
control consists of a bunch of stuff drawn under an
overlay. (Think of cross-hairs drawn on a map). The
control itself is inside a scroll box. As you scroll the
control the overlay stays in the same spot while the
background move... more >>
Drawing an erasable line?
Posted by John at 11/30/2003 10:01:55 AM
Hi,
I want to write a control similar to the splitter control,
whereas when the user drags the control a line is drawn
which is then removed depending where the user has the
mouse. (rubber banding?)
Any help much appreciated?
John... more >>
GDI+ and Text
Posted by Sueffel at 11/30/2003 9:22:37 AM
I'm trying to find a solution to this problem that has plagued me for a
few months now.
Basically, I'm writing my own Telnet application, for starters, and I need
to print formatted text to the background of the form. BitBlt was the
preferred method, but it was frought with problems. My so... more >>
Control.Invalidate()?
Posted by John at 11/30/2003 8:52:15 AM
Hi,
What is the best way to invalidate just an area of a
control??, I am currently using Control.Invalidate but I
don't want to invalidate all the control just a certain
area?, what is actually raised when you do a
Control.Invalidate(Rectangle)?
John... more >>
ARGB to RGBA
Posted by Phil Price at 11/29/2003 5:46:18 PM
Hi There,
I need to convert the standard ARGB pixel format that .net uses to a
RGBA to use in opengl, any idea how one could go about this?
Cheers
Phil
--
Phil Price
Student at The University Of Hull
http://www.philprice.net
http://www.dcs.hull.ac.uk... more >>
Progressive jpegs
Posted by Carl Aaby at 11/28/2003 2:44:50 PM
Hi.
I have the following problem.
What I want to do is to transcode and scale progressive jpeg files to
non-progressive jpg files.
The resizing is trivial, but is there a way to make the jpg encoder encode a
non-progressive jpeg when the source is a progressive jpeg?
Carl
... more >>
Printing raw text
Posted by Alessandro Cavalieri at 11/28/2003 12:46:47 PM
Hi all,
I need to print raw text to standard TEXT printer. Does anyone knows how to
or have an example?
Thanks,
Alessandro Cavalieri
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Extracting OCR from .tif file
Posted by David H. at 11/28/2003 11:43:14 AM
When a user OCRs via Microsoft Office Document Imaging
(office 2003), the OCR text gets saved inside the .tif
file. However, if the .tif is opened using some other
program the OCR text gets lost.
Does anyone know how to extract the OCR text when
iterating through the frames (i.e.pages) u... more >>
re:.net component for playing video (i.e. avi's) in .NET
Posted by Paul Hetherington at 11/28/2003 8:51:52 AM
Hi,
Anyone out there know how to load and play a video file (avi) in .NET
I am looking for a managed method. Com/Interop isn't an option.
Thanks
--
Paul
... more >>
Help me with Pen.
Posted by KVV at 11/27/2003 5:25:30 PM
Hello, All!
SolidBrush brush = new SolidBrush(SystemColors.Control);
e.Graphics.FillRectangle(brush,Rect);
Why this code draws picture1(see attach)
and this
Pen pen = new Pen(brush,drawWidth);
pen.Alignment = PenAlignment.Inset;
e.Graphics.DrawRectangle(pen,Rect);
draws picture2?(tak... more >>
How to move a part of an bitmap to another location?
Posted by Crirus at 11/27/2003 2:00:56 PM
I have a bitmap
I need to redraw a part of the bitmap to another location on the same
bitmap, nad the remaining part to be painted with another things
Wich should be the way?
--
Ceers,
Crirus
------------------------------
If work were a good thing, the boss would take it all from ... more >>
How to speed up a drawImage?
Posted by Crirus at 11/27/2003 12:50:14 PM
I ned to make a drawImage as fast as possible and elimiante any checks I
dont really need...
By exemple if I dont do any transparent renders, it will be an advantage to
specify Graphics.CompositingMode = CompositingMode.SourceCopy?
Any other hints?
--
Ceers,
Crirus
---------------... more >>
.NET IDE 2002 and 2003 resources compatibiliy
Posted by Alec Solter at 11/27/2003 10:59:51 AM
Using .NET IDE 2003 I created a simple form that includes a button with
image. When trying to run this project on old .NET IDE 2002 it is throws the
following exception:
System.InvalidCastException: Specified cast is not valid.
It's happens on the following line in standard Initializ... more >>
Smooth-cornered rectangles
Posted by Jester at 11/26/2003 9:04:31 PM
Hi!
I have a simple problem. How do I draw rectangles w/
smooth corners? I can draw an ellipse but it's too "round"
inside my rectangle. I would like to have the "round"
effect only on the edges where the horizontal/vertical
corners meet. Thanks :) ... more >>
Page faults
Posted by Crirus at 11/26/2003 8:11:46 PM
Why do I got so many page faults in a simple image viewer as below?
The image is a full screen size jpg (200k on disk)
Private myimg As Bitmap
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
myimg = Bitmap.FromFile("1.jpg")
End Sub
... more >>
How to rotate an image by 270 Degree
Posted by Mullin Yu at 11/26/2003 3:51:15 PM
I can create an image object with a string printed on it. But, how I can
rotate the whole image 270 degree clockwise
static public Bitmap createSerial()
{
Graphics objGraphics;
string strSerialNo = "20031124123456-1";
// Create a bitma... more >>
Problem locating all Printers in computer...
Posted by Vanessa at 11/26/2003 2:36:58 PM
Hi,
I'm trying to loop through all the printers in my computer system using WMI.
However, I found out that it doesn't really get the correct number of
printers in my system.
I have 16 printers in my printers & faxes. However, when I use the WMI to
retrieve the printers in my system, it onl... more >>
How to draw a string?
Posted by Mullin Yu at 11/26/2003 12:20:28 PM
now, i want to create a class libary that will accept a string and then
output an Image back.
The image is simply a white rectangle with a specific size of area, and a
black string will be on it.
any api or sample code or ideas?
i tried to create a function, and no string has been printed... more >>
drawing handles, and moving shapes
Posted by John at 11/26/2003 11:01:55 AM
Hi,
Can anyone tell me the the best way to implement handles
on shapes similar to a drawing package, to resize/move,
etc, I'm not sure about how to move them without flicking?
John... more >>
What is SmoothingModes and InterpolationMode for?
Posted by cql60 at 11/26/2003 9:37:04 AM
Hi all,
Do you guys know what is "Interpolation" and "SmoothingModes" for ? Is it
will have a major affect on "DrawImage" method ? Thanks you all in advance
and so appreciated for your help. Have a good one...
Kate
... more >>
how to change dpi?
Posted by varun varun at 11/26/2003 2:56:26 AM
i have an image in jpg format.
i want to chage its dpi.
its current dpi is 72.
i want to change is to 300 and save that
image again.
how can i do this in vb.net ?
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it... more >>
GDI+ ImageFormat problem
Posted by Omer Kudat at 11/26/2003 1:06:28 AM
Hello all,
I'm experiencing a rather strange problem: I have PNG
images saved into an Image column on SQL Server 2000.
Later, I retrieve the binary data and show it on a
browser, as such:
<snip>
byte[] bImgData = (byte[])myCommand.ExecuteScalar();
myConnection.Close();
// create str... more >>
How to retrieve a Control (if any) under the mouse at any time ?
Posted by Pascal SIMON at 11/26/2003 12:30:53 AM
Hi
I think i've read something about it but i don't remember where, so i ask it
again (sorry)...
I want to retrieve the Control/Form under the Mouse at any time.
I know i can convert the mouse position to a Point using
"get_MousePosition()". But after that, i'm locked.
In fact, i'm looking... more >>
MeasureString & DrawText
Posted by Iulian Ionescu at 11/25/2003 7:10:52 PM
Hi, I want to calculate the height of a string that fits
in a certain width and display it inside the rectangle.
However, no matter how much I try, the MeasureString
never returns the correct height (for the text needs to
wrap). Here is how I calculate the size of the layout
rectangle:
... more >>
C# - Need to resize image on white background
Posted by webmaster NO[at]SPAM paradoxdigital.com at 11/25/2003 5:47:38 PM
I have a series of images, loaded into Image objects. they are of
different sizes, and when I add them to an image list, they resize to
fill the H and V values by stretching. I need to make them size and
center, retaining their original aspect ratio, but placed inside a new
image obejct of 100... more >>
Get text inside a rectangle
Posted by mBird at 11/25/2003 4:07:42 PM
My app draws some text.
I want to be able to select and copy that text to the clipboard (along with
its font info if possible).
I tried drawing a rectangle around the text and ...
Rectangle r = new Rectangle(10, 170, 300, 40);
Clipboard.SetDataObject(r, true);
But that did not put anything... more >>
Trouble in saving the .TIFF File in ASP.NET
Posted by priyasree NO[at]SPAM hotmail.com at 11/25/2003 10:30:12 AM
I am trying to save the image in .TIFF format. But when the ASPX sends
the request to browser it opens the download dialog box with the
format as .aspx instead of .tiff. How should I open the download
dialog box as .tiff for saving the image. Should I have to set
anything in IIS.
Thanks
Priya... more >>
good book for starting graphics programming?
Posted by Dean Slindee at 11/24/2003 7:16:30 PM
Anyone read a good .NET book that would introduce a "regular" programmer to
the specialized field of graphics programming?
Thanks
Dean Slindee
... more >>
Retrieving "Appearance" settings
Posted by Colin Savage at 11/24/2003 4:09:52 PM
I'm not sure if this is the right newsgroup, does anyone know where in the
..net class library i can retrieve the system appearance / theme settings. In
particular the font settings. e.g. to get the system default font for a
Tooltip or Menu.
Thanks
Colin
... more >>
EXIF metadata from .JPG weirdness
Posted by mdelvecchio NO[at]SPAM visi.com at 11/23/2003 3:03:23 PM
id like to be able to retrieve info my pics -- things like, camera
shot with, shutter/aperature settings, etc..
i thought this would be pretty straight-forward, but i've spent hours
on it so far. first, my general technique:
Dim myImage As Drawing.Image = Drawing.Image.FromFile(strAbPath &... more >>
GDI+ Designer?
Posted by Dave Veeneman at 11/23/2003 7:55:34 AM
I'm looking around for a GDI+ designer, a program or VS.Net add-in that will
let me layout a print document (or any other System.Drawing content)
on-screen, then generate the GDI+ code to do the drawing. I'm looking for a
package that will simply generate the code; I'm comfortable integrating the... more >>
How to display video file from database
Posted by Isabella at 11/23/2003 12:22:27 AM
I have successfully insert .wmv files into MySQL. When I display the video
in the browser using Read.aspx to get the .wmv:
Response.ContentType = objDataReader.Item("swingContentType")
Response.BinaryWrite(objDataReader.Item("swing"))
if I directly call this Read.aspx, window media will open... more >>
saving a gif
Posted by Steve Bugden at 11/22/2003 8:08:30 AM
I'm trying create a gif, programattically via a vb.net
form. When I save it its very 'grainy', I've appended the
code that I'm using to the end of this message.
I've looked at the following article:
INFO: GDI+ GIF Files Are Saved Using the 8-Bpp Format
http://support.microsoft.com/default.a... more >>
jpg compression
Posted by Niels Lunn at 11/22/2003 12:49:30 AM
Hi,
I want to automaticly optimize some images on a webserver, and therefore
tried to compress them with the jpg encoder. But it seems like the
compression quality are simply not good enough. When using a image editor
the compression is much better than what I can get out of the dotnet
encode... more >>
Advice needed
Posted by Crirus at 11/21/2003 11:22:29 AM
I have a full screen image to draw on a form
Is there any chance to make that draw fast enough in order to scroll the
image around in real time...?
Right now, I drag the image and a delay is noticed on every draw so the
image is not scrolled smooth...
--
Ceers,
Crirus
--... more >>
EMF Image - Reading the text data part of the records/frames
Posted by John at 11/21/2003 2:37:19 AM
Hello everyone,
I have been looking at the sample code at
http://www.vb-helper.com/howto_net_enumerate_metafile.html
I'd like to be able to read the text from an EMF file. In the code above you
can enumerate through the file to each record
m_Metafile.PlayRecord(recordType, flags, dataSi... more >>
8 Bit Bitmaps?
Posted by Jason Dorie at 11/21/2003 1:41:23 AM
I'm porting some C++ code I wrote to load TGA files to C#. Everything works
as expected, with the exception that I get garbage palettes when displaying
8 bit images.
I'm reading into a Bitmap object whose PixelFormat is 8bppIndexed, and I've
read the palette into the Image.Palette.Entries pro... more >>
Transparent Image on a transparent Window
Posted by Ron Vecchi at 11/20/2003 8:00:42 PM
Hello,
I have a transparent form. That I would like to place an image on.
This image is a png and is like a border with rounded corners. the rounded
corners are transparent along with the center of the image(in between the
borders)
This image will be placed as the top layer over any control... more >>
Painting problem
Posted by Sriram Raghavan at 11/20/2003 2:43:09 PM
Hi
I've written a c# custom controls that uses
doublebuffering (those Control.SetStyle stuffs) that works
fine most of the time. This control involves handling lot
of realtime data and paint those on the screen, which 'am
doing OnPaint method. Everytime i get a notification
(realtime), ... more >>
Image Opacity
Posted by David at 11/20/2003 12:32:54 PM
Hello everyone.
Is it a way to draw an image on top of another image with
certain opacity level, similar to the watermark?
Any feedback is greatly appreciated.
... more >>
Scroll TEXT similar starwars
Posted by babsevensix at 11/20/2003 9:56:40 AM
I search a source code to draw a scroll text similar the star wars
iniatial screen.
Have some idea?
Thanks
Alberto... more >>
Image quality displaying TIFF files
Posted by Paul Dunleavy at 11/20/2003 2:49:32 AM
I want to replicate and then extend the functionality of
the KODAK image viewer within my application when viewing
TIFF files. I cannot seem to get the same picture quality
as with the viewer (antialiasing).
I've tried opening the images (large maps) both with the
picturebox control and u... more >>
Avalon vs gdi+
Posted by Amar at 11/20/2003 12:54:14 AM
Hi,
Is GDI+ going to become irrelevant in the LongHorn Release?
Since the old windows approach of messages is going to be
shelved in the latest release, should we need to do a code
revamp
Thanks and regards,
amarnath
... more >>
Performance problem when drawing data received from DSP.
Posted by Alexander Arlievsky at 11/19/2003 3:24:08 PM
We are developing an application that involves a PCI driver to a DSP card
that generates data at high rates (over 40 interrupts/sec, about 3MB/sec).
We use WinDriver for the driver (no kernel plugin) - and we allocate a user
buffer for dma operations (continuous mode dma(, we then copy the data... more >>
Creating and saving Graphics in ASP.NET
Posted by JaKRAM at 11/19/2003 2:21:10 PM
I need to creat and save some graphics in asp.net web page but it's giving me erro
sending the graphics as a response output stream is doing well as followin
Response.ContentType = "iimage/JPEG"
oBitmap.Save(Response.OutputStream, System.Drawing.Imaging.ImageFormat.Bmp);
Response.End()
but I ... more >>
GraphicsPath
Posted by Crirus at 11/19/2003 11:16:37 AM
How can I enlarge(expand) a graphicsPath with a specified ammount in all
direcctions?
--
Ceers,
Crirus
------------------------------
If work were a good thing, the boss would take it all from you
------------------------------
... more >>
Determine if font is monospace
Posted by Henrik at 11/18/2003 11:43:52 PM
Hi,
using C# and GDI+, I really need some way of finding out
whether the font used is monospaced or not, but can't
figure out how.
What I'm looking for is a property like:
if(font.IsMonospace)
{
....
}
Is there an easy way to do this?
Also, how can I find out whether the font... more >>
Embedding animated GIF as resource yields errors...
Posted by rory.plaire NO[at]SPAM co.benton.or.us at 11/18/2003 5:54:37 PM
Hi all,
I have created an animated GIF which I want to display in a panel.
When I get the image from a file, everything works well. When I embed
the file as a resource and extract it via a stream, then calling
SetActiveFrame() on the image object fails with a generic GDI+ error
(although GetF... more >>
TabControl buttons
Posted by Fatih BOY at 11/18/2003 12:36:41 PM
Hi,
Does anyone know how to handle drawing of navigation buttons on tabcontrol??
I want to draw my own buttons.
... more >>
|