all groups > dotnet drawing api > february 2004 > threads for february 15 - 21, 2004
Filter by week: 1 2 3 4
Bitmap Constructor
Posted by Jonathan Allen at 2/20/2004 11:11:52 PM
Could someone tell me what this constructor is for? (preferably with a code
sample)
Initializes a new instance of the Bitmap class from a specified resource.
[Visual Basic] Public Sub New(Type, String)
Jonathan
... more >>
How do I load a Byte array into a memory Stream?
Posted by Jack at 2/20/2004 9:07:18 PM
Hello,
How do I load a Byte Array Into a memory Stream?
Thanks in advance for all you help and time,
Jack
... more >>
Can't get print margins right @ printer?
Posted by chris vella at 2/20/2004 7:50:22 PM
I am sure it is something simple but for the life of me I can't get a
PrintDocument to print correctly at the printer. The print preview dialog
doesn't have any problems with the margins and displays the pages to be
printed perfectly. However when printing to a HP laser jet, the right margin
is ... more >>
Positioning text in non-rectangular controls
Posted by J.Marsch at 2/20/2004 5:46:49 PM
Hello all:
I'm building my first non-rectangular control, and so far, everything is
going pretty well. I have one fine tuning point that I would like a hint
for:
This control is a rounded button, and I want to support all 9 text
alignments for the Winform TextAlign property. I'm having ju... more >>
gantt chart in asp.net
Posted by rajani at 2/20/2004 10:30:38 AM
Hi ,
How do we create gantt chart in asp.net?. Any code samples or url will help.
I don't want to use any third party components.
regards
gdc
... more >>
Pen's DashPattern property memory problem
Posted by tristan_sehgal NO[at]SPAM yahoo.co.uk at 2/20/2004 10:06:31 AM
Hi,
When I create a new Pen and take a look at the DashPattern
property it reads <System.OutOfMemoryException>.
Which is a problem because I need to loop round an array
of pens checking their DashPattern array lengths.
I can't even test the DashPattern property to
see if it's null.
I ... more >>
Drawing different roofs
Posted by Rameshika at 2/19/2004 11:41:05 PM
Hi All,
I want to draw roof shapes in my program using user entered roof angle, height, width, length etc. I develop this application in C#. I'm new to drawing and need some guidance to start off. I also want to see the possibility of drawing 3D models in C#. where shoudl i start? what methods and ... more >>
New icon file
Posted by Julian Hershel at 2/19/2004 9:22:34 PM
Hi.
I am using vs.net to create some icons for my applications. When creating
these icons is it possible to copy the image from one of the vs.net toolbar
buttons and paste it in my new icon file? I want to create an icon that is
slightly different from one of the vs.net icons.
Thank you.
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Invalidated Regions?
Posted by cody at 2/19/2004 7:48:23 PM
When overriding OnPaint to do custom drawing, how can I get the invalid
regions of the control to paint?
--
cody
[Freeware, Games and Humor]
www.deutronium.de.vu || www.deutronium.tk
... more >>
Geting Rid of Type and Size of a Font
Posted by Asela Gunawardena at 2/19/2004 10:49:08 AM
Hi
I want to Expose a Font Property of my Control to the developper. when i do
this the normal Font selection dialogue box appears which works fine, but
the problem is there you get to select the Font size as well, which has no
relevance to my Control. so can someone please tell me a way to ge... more >>
19 Feb 2004, How to access VB.net applications thr' PDA's
Posted by Sham Yemul at 2/19/2004 7:41:35 AM
Hello,
I recently started development in Vb.net. I am about to finish a product in
VB.net Database Applicatio, Sql Server as Backend.
I read little about wireless technology and PDAs.
Is it true that one can access VB.net forms/applications running on Server,
using PDAs ?
If so please te... more >>
ScaleTransform Moves text instead of scaling
Posted by Al at 2/19/2004 1:26:05 AM
I need to scale the size of a barcode that I'm printing along the vertical axis.
When I apply the ScaleTransform method to the Graphics object the result it the barcode is moved instead of resized. I am using the following code to achieve this:
[VB.NET]
deviceContext_.ResetTransform()
device... more >>
white bitmap is not 100% white
Posted by Jacco at 2/19/2004 1:12:04 AM
Hi,
When I display a picture and load a bitmap with whites in it (in fact, a big
white area), and I compare thet white with the full white of the panel
behind it, I see that the bitmap is not exactly white. Is there some color
conversion in the PDA device ? How can I force a full white pixel i... more >>
how do i apply colors to tabs, title bars and other controls in C#
Posted by designer at 2/19/2004 12:49:39 AM
I'm trying to apply color scheme to the forms in C# .NET. I couldn't find any solution for tabs and title bars. It doesn't display the bgcolors that are applied to these controls.
---
Posted using Wimdows.net NntpNews Component - Posted from .NET's Largest Community Website: http://www.dotnetjun... more >>
GDI+ drawn Lines and Scrollbars
Posted by Hannes at 2/19/2004 12:46:05 AM
Hello I'm Hannes
on a form with GDI+ .DrawRectangle()-method drawn Rows I want to synchronize th
vertical scrollbars with the rectangles. Each time I use the scroll-slider a whole rectangle should be move
and not the predefined scroll-units. The rows contain e.g. one image per row or text-blocks.... more >>
how to convert a colour Bitmap image to a 1bpp (b/w) bitmap image??
Posted by wzy at 2/19/2004 12:10:43 AM
who can help me?thx!
... more >>
Convert Image to Icon
Posted by Marcin at 2/18/2004 9:36:11 AM
Hi I have imageList and I want to convert imageList.Images[2] to System.Drawing.Icon
How can I accomplish that?
... more >>
Mixing Color
Posted by MikeH at 2/18/2004 4:41:05 AM
Imagine a gradient of 2 colors, say white thru Systemcolors.ActiveCaption. Is there an algorithm that will give me the color part way along that gradient
What I want to do is lighten Systemcolors.ActiveCaption (or any other color) by a given amount
Thank you... more >>
PrinterSettings Collate
Posted by Kevin Ortman at 2/17/2004 10:41:05 PM
Has anyone figured out how to print collated pages from C# ? (two sets of prints with the pages ordered 1 2 3, 1 2 3 instead of the default ording 1 1, 2 2, 3 3).
I tried using the PrinterSettings.Collate property, but it does not seem to have any effect whatsoever.
We've tested both .net fra... more >>
Need to write Text Accross an Image from a SQL Database
Posted by Jack at 2/17/2004 2:49:16 PM
Hello,
I am tring to write text accross an image from a SQL Database. If any one
has an example of this please let me know. In VB.NET if possable.
Thanks in advance for you help and time,
Jack
... more >>
Printing & Saving contents of scrollable window
Posted by lori.pearsall7 NO[at]SPAM gte.net at 2/17/2004 11:48:51 AM
I'm doing a diagramming product of sorts that will be comprised of
"nodes". These nodes can be square, have rounded corners, etc. Within
these nodes, there can be either text (rich text) or an image.
I had intended on using an owner-drawn control to accomplish the
outline and add a rich text b... more >>
Simulate panel scrolling - auto scrolling
Posted by utku at 2/17/2004 10:21:06 AM
My Q is related to "How do I manipulate the graphics on screen?"
tutorial on http://www.bobpowell.net/gdiplus_faq.htm.
I programmed a similar user interface but i can't simulate scrolling
on the panel when the figures on that panel is
dragged out of screen. Because usually windows handles
thing... more >>
Flood fill
Posted by cody at 2/16/2004 4:58:06 PM
Is there a method which provides a functionality like Flood-fill, that is
fill a region bounded with a specific color, just like the fill tool in
MSPaint.
--
cody
[Freeware, Games and Humor]
www.deutronium.de.vu || www.deutronium.tk
... more >>
C# and image capture
Posted by <.> at 2/16/2004 3:24:47 PM
Hi,
What is the best way to capture images from a FireWire DCAM camera? Is
there any support for the DCAM protocol anywhere for C# on Windows 2000? If
I understand it right TWAIN = legacy and not to be used, STI is the old
driver model and WIA is the new model but only on XP and later.
... more >>
EMF Problem
Posted by Sujith Manuel at 2/16/2004 1:38:04 PM
Hi All,
I have some doubts regarding Metafile class in .Net Framework. I tried to
save the metafile object to a disk file as shown below:
_metafile.Save("C:\\delete\\Test.emf",
System.Drawing.Imaging.ImageFormat.Emf);
if I open the saved EMF file in notepad, the header values indicate tha... more >>
Using Format16bppGrayScale Images - how?
Posted by mredmond at 2/16/2004 1:11:07 PM
Hi
I posted this hours ago and it hasn't made it onto the group - so I'll try again. This is a two part question
I have a binary file filled with 16-bit integer data. It represents elevation data for a terrain matrix and is organized by row, then column. I need load this data into a bitmap o... more >>
Get bitmap slows app...HELP!
Posted by john at 2/16/2004 12:56:06 PM
I'm writing a game-like app that has several dots move around the screen independantly. My collision logic is based on pixel color. The main form is white, and the dot checks the pixel colors in each of the main 4 directions, looking for a non white color so it knows it needs to turn.
so in o... more >>
How to use 16bppGrayscale???
Posted by mredmond at 2/16/2004 7:11:06 AM
Hi All
I need to build up a 16-bit-per-pixel grayscale image 'from scratch'. I have a file containing 16-bit unsigned integer data representing a shade of gray for each pixel. The file has (1) a fixed length, and (2) a known number of rows and columns, with one value per row/column pair (i.e., o... more >>
Implementing a Simple Paint
Posted by cody at 2/15/2004 7:40:58 PM
I have the problem that every time the User draws a Line or something, the
Changes does not show up, so I have to call myDrawPanel.Refresh(); Now is
the problem that Refresh() is causing the panel to flicker. What can I do to
get around it?
this is the code that draws the panel:
private voi... more >>
Overflow or underflow in the arithmetic operation when showing form AGAIN?
Posted by Dan Tanzer at 2/15/2004 2:54:07 PM
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=uL7Smv7wDHA.1680%40TK2MSFTNGP12.phx.gbl&rnum=2&prev=/groups%3Fq%3D.net%2Boverflow%2Bunderflow%2Bfont%26hl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26selm%3DuL7Smv7wDHA.1680%2540TK2MSFTNGP12.phx.gbl%26rnum%3D2
I have a question ab... more >>
g.ResetTransform() != g.Transform.Reset() ?
Posted by Gawel at 2/15/2004 1:36:09 AM
If I use g.Transform.Reset() then my modifications remain.
If I use g.ResetTransform() all is ok.
Can somebody tell me why the result is not the same in both cases ?
Gawel
-------------------------------
Pierwszy ³yk z pucharu nauk przyrodniczych czyni ateist±, ale na dnie
pucharu czeka Bó... more >>
Saving Pixels
Posted by cody at 2/15/2004 12:01:16 AM
I want to let the User draw a Circle on a canvas and later he should be able
to undo it.
Therefore I have to save the Pixels beneath the Circle and at a later time
able to restore them. I don't want to save the whole image because the User
should be able to undo multiple times and I don't have u... more >>
|