all groups > dotnet drawing api > april 2004 > threads for april 8 - 14, 2004
Filter by week: 1 2 3 4 5
DrawString problem
Posted by Johnny at 4/14/2004 8:10:22 PM
Hi all,
I'm creating a control derived from System.Windows.Forms.Control
I override the OnPaint() method.
In this method, I need to draw a string in an area.
This area is a rectangle (called fRect)
I want to display a text centered vertically.
I used MeasureString, but the result is not alwa... more >>
Q: For Bob Powell RE: Transparent control
Posted by Chris Dunaway at 4/14/2004 10:32:15 AM
I read your article on your website about creating a transparent control.
Is there anyway to alter the amount of transparency using your method?
--
Chris
To send me an E-mail, remove the underscores and lunchmeat from my E-Mail
address.... more >>
converting to pixelformat16brgb565
Posted by Randy Pulsifer at 4/14/2004 9:28:30 AM
ASP.NET - VB - VisualStudio.net Enterprise
Whereas: most windows bitmaps are 24bit RGB or 32 bit ARGB, and whereas: I
have an app that MUST have a single 2byte word for each pixel in RGB565
format. How does one do this in a webapp?
I have tried the .clone method to see if that converted anything... more >>
Panel and transparency
Posted by Chris Dunaway at 4/13/2004 4:22:43 PM
If I have a form with a background image on it and then place a panel over
it, I can make the panel transparent by setting it BackColor property to
include an alpha component. For example, If I set the BackColor (for
example) to 128,255,0,0, it is a nice transparent red panel and I can see
the ... more >>
Exception on MeasureCharacterRanges
Posted by Yoav Ben-Yosef at 4/12/2004 11:37:20 PM
Hi All,
The following program stops with an "Invalid parameter used" exception on
the last statement of Test() function.
'---------------------------------------------------------------------------
---------------------------
Private Sub Form1_Load(ByVal sender As System.Object, _
... more >>
Metafile.....
Posted by Sumant at 4/12/2004 5:46:17 PM
Can anybody pls help...
I am reading Metafile (EMF format) from disk and trying to reproduce some
part of it in a picture box. Problem is "PlayRecord()" works only with
callback function "EnumerateMetafile". I copied all data in arrays using
"EnumerateMetafile" and then tried to play it with "Pl... more >>
Bitmap.Save(stream) simply doesn't work.
Posted by RichM at 4/12/2004 7:16:03 AM
I've tried every combination of Image.Save() and Bitmap.Save() to a FileStream and all I ever end up with is a corrupted file. I've tried locking the bits for a read. The stream pointer and the stream size somehow end up different after the method call. I'm wondering if the method is simply not desi... more >>
Refresh problems
Posted by badBilly NO[at]SPAM currantbun.com at 4/11/2004 5:13:22 AM
Hi All,
I am drawing to a DirectX surface that is clipped to a picturebox.
Everything that I draw is fine. If I move another window over the top
of the picturebox and move it around, the OnPaint event fires, and I
can redraw. However, if the window that is obscuring my picturebox is
minimi... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Animated Gif and GDI+
Posted by Moshe Plotkin at 4/11/2004 1:48:13 AM
B"H
How would you suggest displaying an animated gif with GDI+?
With and without the OnPaint event.
Thanks
... more >>
Drawing a Line in a Panel
Posted by Jeff at 4/10/2004 6:26:51 PM
Hi -
I understand how to draw a line on a Form, but how can I draw a line in a
Panel?
- Jeff
... more >>
VB6 to VB.NET
Posted by Neil Stevens at 4/9/2004 3:42:30 PM
Hi,
I have the following piece of code in VB6 which is giving me som problems, i
want to convert this into .NET without have to use the API.
I have converted most of the application over to .NET and found some that
the performance of some part of the application has increased.
The followi... more >>
Transparent Control!
Posted by Ă–zden Irmak at 4/9/2004 2:42:18 PM
Hi,
I'm developing a windows forms component deriving from
System.Windows.Forms.Control...
This control needs to support transparency...Either it's background or it's
foreground (text on it) can be transparent...
I'm now using a method where I check the control's image pixel by pixel and
... more >>
Image.Save() confusion
Posted by RichM at 4/9/2004 12:51:03 PM
Hi
I'm writing a C# application that, for now, needs to simply load multiple bitmaps from individual files and then save them together into one file, and then read them back again. My resulting file should be structered thus
origional filename "C:\blah\bitmap1.bmp
image data for bitmap
origion... more >>
JPEG Conversion from 24bit to 8bit
Posted by Dilip Krishnan at 4/9/2004 9:36:31 AM
Hi,
Wondering if any one in the news group has experiece with
conversion of JPEG images from 24bit to 8bit. Any help appreciated
Thanks
--
Regards,
Dilip Krishnan
MCAD, MCSD.net
dilipdotnet at apdiya dot com... more >>
ExtTextOut - Drawing Text Vertically
Posted by Nilesh Rade at 4/9/2004 2:26:04 AM
I am drawinf text Vertically using ExtTextOut by creating my own font using CreateFont with nEscapement angle as 900
But am not abel t draw the string . Am passing my won rectangle I am confused as to what x and Y coordinates should I pass for reference?
What are x and y coordinates reference for ... more >>
Get Bitmap of Control
Posted by James Hancock at 4/8/2004 11:50:25 PM
I would like to get a bitmap representation of a control as it stands on the
form.
The control really needs to be hidden and not visible when I do this.
Anyone have any ideas?
Thanks!
James Hancock
... more >>
how Can I know about default transparent color in bitmap?
Posted by Vlad at 4/8/2004 8:13:00 PM
Hello, All! Question in subject.
With best regards, Vlad. E-mail: 1
... more >>
Using PrintDocument to Print to Plotter & Alternatives
Posted by ryan NO[at]SPAM comsite.net at 4/8/2004 1:42:52 PM
I'm trying to use a PrintDocument to print to a plotter but get the
very discouraging errors message that follows. It works fine to a
printer. From what I have read I am not optimistic on getting this to
work using GDI+.
Error:
An unhandled exception of type 'System.ComponentModel.Win32Exce... more >>
how to change apha setting of .jpg file in .NET C++?
Posted by the_caspie NO[at]SPAM hotmail.com at 4/8/2004 4:37:17 AM
Hi there,
I'm trying to change the alpha settings of a .jpg file in .NET but i'm
stuck.
I've converted the .jpg file to a bitmap file. And I thought to change
the colorpalette of this new bitmap file. But I don't know how to
change a colorpalette.
Can somebody help me?
Greatz,
Steven... more >>
|