all groups > dotnet drawing api > february 2004 > threads for february 8 - 14, 2004
Filter by week: 1 2 3 4
flickering + slow mouse reaction - custom made grid/spread
Posted by Alex at 2/14/2004 10:36:04 PM
Hi,
with GDI+ I tried to implement a custom made grid/spread that draws e.g. 20 x 50 cells on a WindowsForm.
The cell-positions are buffered in an ArrayList at runtime and are connected to scrollbars.
A text-edit box moves along the mouse position for data entry.
Though I used some code for do... more >>
Get bitmap from graphics object
Posted by john at 2/14/2004 1:41:05 PM
I've got a program that needs to get the bitmap of the winform. I've got the graphics object, but cant find a way to get a bitmap from it. i need the bitmap because i need to do some Bitmap.GetPixel() work.
so two questions
1. can i get the pixel color of x and y from a graphics object
2. i... more >>
3D Points (structs vs classes)
Posted by cody at 2/14/2004 1:27:19 PM
When I have a 3-Dimensional Point is it better to use a class or a struct? I
heard that if the size of the struct is greater than 16 bytes but in my
feelings using a class for 3 double values (24 bytes) is overhead. In the
app I've planned i would have thousands of 3DPoints, isn't it better to us... more >>
Saving Animated Gif
Posted by Shaman at 2/13/2004 3:51:06 PM
Hi,
im making an app that generates an animated gif (8 frames for now), and im trying to save it to a file.. somebody suggested the SaveAdd method of System.Drawing.Images but after spending 3 hours on msdn trying to figgure out how to get EncoderParams to work with it... i almost gave up on it..
... more >>
AntiAliasing / Smoothening AddString/DrawString
Posted by Alex at 2/13/2004 9:21:05 AM
Hi
the Antialiasing of AddString doesn't work. Please: what's the difference betwee
myGraphicPath.AddString(...) ~>Antialiasing doesn't works (looks ugly on small sized fonts, like Fax
an
myGraphic.DrawString(...) ~> works fine, also on small font
how can I match the needs for better reso... more >>
Need guidance
Posted by 1 at 2/12/2004 3:47:59 PM
Hi there,
I would like to be able to draw objects onto a canvas and have them as
selectable objects that can have text added, much like the way Visio works
but on a smaller scale.
The end result should allow a user to drag a row from the grid onto the
canvas, which will generate a shape (se... more >>
Drawing a Icon or Bitmap
Posted by VJ at 2/12/2004 11:21:12 AM
How would I draw a Icon or Bitmap on a GraphicsPath object?
VJ
... more >>
Resize Transparent GIF?
Posted by lori NO[at]SPAM bwedd.com at 2/12/2004 10:12:37 AM
I have code that resizes JPG well... actually I developed it from a
newsgroup post here:
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=eB7LHhuODHA.4024%40tk2msftngp13.phx.gbl&rnum=1&prev=/groups%3Fhl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26selm%3DeB7LHhuODHA.4024%2540tk2msft... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Drawing text to fit a box
Posted by Tristan at 2/12/2004 9:01:11 AM
Hi
I am really struggling to find a way of rendering some text so that it fits nicely in a rectangle. I don't care how big or small the text ends up, just as long as fits in the defined RectangleF object
Basically I am looking for something similar to Graphics.drawString but which scales the fon... more >>
An Image With Text Beside It
Posted by Stanley at 2/12/2004 8:41:48 AM
I am trying to pull in an image and then put some text next to it to create
one Image I am new to GDI or any type of graphic creation like this so I was
wondering if any has an article that would show me how to do this?
TIA
-Stanley
... more >>
Using System.Drawing namespace in a Class Library project
Posted by J. Ana at 2/12/2004 8:06:07 AM
Hello,
I'm building an assembly that it run image procesing.
I'm building a class library project in C# and I'm trying to use "using System.Drawing" and the compiler show this error "The type or namespace name 'Drawing' does not exist in the class or namespace 'System' (are you missing an assemb... more >>
Help drawing borders!!!
Posted by Alejandro K. at 2/11/2004 1:48:21 PM
Hi , i got some problems using Paint event... the thing is that i got my
form divided in 2 using a splitter. the splitter divides 2 Panels that
are Docked to Fill
inside each panel i want to draw a small grey rectangle acting like
borders of the panel,it is working but if i move the Splitter ... more >>
Print Preview without status dialog
Posted by shashijeevan NO[at]SPAM yahoo.com at 2/11/2004 10:27:38 AM
Hi,
I am using the PrintPreviewControl in my form and when I refresh it a
status message dialog box shows up which displays the page # being
printed.
But, I want this status dialog only while printing not while
previewing.
I have tried setting the PrintDocument.PrintController to
Stan... more >>
Overriding OnPaing for listview
Posted by Joe Wright at 2/10/2004 6:18:57 PM
Hi, i've been using .net drawing for my own user controls and also for
printing but i can't find any information on overriding the OnPaint event in
inherited controls, specifically a listview. Would i have to draw the entire
control myself or could i just paint certain things such as the col head... more >>
Semitransparent areas
Posted by Armin Zingler at 2/10/2004 5:16:03 PM
Hi again,
I've got another transparency problem.
Q: How can I make _parts_ of a Form _semi_transparent?
- Opacity affects the _whole_ Form.
- The TransparencyKey makes areas _completely_ transparent.
So both are not what I am looking for. The following example uses the alpha
channel:
... more >>
How do I redraw a custom control?
Posted by M O J O at 2/10/2004 2:37:02 PM
(using VB.net)
Hi,
I've created my own component inheriting from the RichTextBox.
I override the WndProc's WM_NCPAINT so I can draw my own border (color).
When I set my BorderColor property, then I want to refresh my component
to draw the new bordercolor.
I've tried with invalidate ... more >>
Additional button on the titlebar of the windows form
Posted by Marcin at 2/10/2004 12:36:09 PM
I develop with C#
I want to add a button next to 'X' close button on windows form. I do not show minimize and maximize buttons
I want to reset the form to its default position and size when it will be clicked and I would like to have custom symbol on this new button
... more >>
Need general strategy for handling HUGE bitmaps...
Posted by mredmond at 2/10/2004 9:51:08 AM
Hi All
I have a number of extremely large (10k x 10k pixels) bitmap images that fit together represent a geographic map. I could convert the maps to a lossy format and greatly reduce their size - but I really don't want to
I need to display to users a map centered on their current position (the... more >>
ControlPaint.DrawBorder
Posted by Alejandro K. at 2/10/2004 7:01:29 AM
Hi , i got some problems using Paint event... the thing is that i got my
form divided in 2 using a splitter. the splitter divides 2 Panels that
are Docked to Fill
inside each panel i want to draw a small grey rectangle acting like
borders of the panel,it is working but if i move the Splitter ... more >>
Great speed improvement trick - Format32bppPArgb
Posted by Ray Frankulin at 2/9/2004 1:33:22 AM
Hi all,
Been struggling for a long time with a very intensive GUI in .NET for a
large project. I originally tried it in .NET but it was way to slow. I
then experimented with an activeX control/DLL API in .NET which worked okay
but was always a 'work around'. Finally I looked back into using... more >>
TransparencyKey+Drawimage
Posted by Armin Zingler at 2/8/2004 4:09:06 PM
Hi,
I set the TransparencyKey of a Form = Color.Green. Why doesn't the following
code create a transparent client area?
Private Sub Form1_Paint( _
ByVal sender As Object, _
ByVal e As System.Windows.Forms.PaintEventArgs) _
Handles MyBase.Paint
Dim bmp As Bitmap
Dim g As ... more >>
|