all groups > dotnet drawing api > july 2003
Filter by week: 1 2 3 4 5
Help me with Panel's scroll bars
Posted by Rahul Kumar at 7/31/2003 9:49:24 AM
Hi
I have painting my own stuff on a Panel object, which has AutoScroll
property set to true. Please somebody help me how do I hook to OnHScroll and
OnVScroll events of the scroll bars. These scroll bars or even their events
are not exposed. I guess I am being daft or is it an oversight on the... more >>
GDI+, DDraw or D3D
Posted by KillaApe at 7/31/2003 3:32:17 AM
Hi @all,
I just don't know what I have to use to get the
performance. Hope you can help me...
I should program a visio like GUI. The graphics plane is
presented in 2D. But zooming must be implemented without
pixeling. My first attemp was the GDI+ Lib. Everything
worked fine, but the pe... more >>
Component Opacity
Posted by Christian de Bellefeuille at 7/31/2003 12:32:38 AM
Hi,
Does anyone know how to change a "Component Opacity"?
I mean, if i want to use a RichTextBox, there's no
Opacity property. If i set it's BackColor to
Color.FromArgb(75,255,255,255) for example, it just keep
telling me that it doesn't support Transparency.
If i create my own user ... more >>
How to choose bilinear or bicubic algorithm when resizing an image ?
Posted by Cedric Girard at 7/30/2003 3:49:28 PM
Hello
I have seen in the DotNet Documentation that it coult be possible to choose
the algorithm when we resize an image (JPEG format). Could you give me an
example ?...
Thanks !
Cedric, France
... more >>
trimmed strings
Posted by niels at 7/30/2003 6:43:34 AM
Hello,
I'm new at printing from applications. My app reads a
textfile and tries to print it. The printing works, but I
have tabs in my textfile and the printed page doesn't
have the same tabs. I searched with google, but didn't
find anything. Am I overlooking something?
thanks.
Niels... more >>
www address to jpg
Posted by ph-enom at 7/29/2003 11:19:35 PM
I need to make a component tha would look up an www
address and create a image file of that web page.
For example:
Input: www.gotdotnet.com
Output: a printscreen .jpg file of this web page.
Has anyone any ideas?
Thanks ... more >>
It is really not possible do this???
Posted by Roberto López at 7/29/2003 5:07:18 PM
Hi all,
I´m trying to generate thumnails of pictures into an ASP.NET page.
The process is:
the user search in a images database and I show the results
as a gallery like ACDSee. I have BMP, JPG, GIF, TIFF and WMF.
To generate thumnails I use one page "LoadImage.aspx" that returns
a BinaryStre... more >>
OT for Bob Powell
Posted by Chris Dunaway at 7/29/2003 10:08:38 AM
Hi Bob,
I seem to recall seeing in a signature line on one of your posts something
about "trying your book".
Do you have a book on graphics published? If so can you provide some
details on it?
Thanks,
Chris
--
If you don't like lunchmeat, please remove it from my e-mail addres... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Anti Aliasing kunundrum!
Posted by Mike in Paradise at 7/29/2003 6:20:25 AM
I am building a control that is light rendering on a
rotating ball that moves as the mouse moves which means
each time the mouse moves each pixel in the control can
change. I have this in a bitmap using the SetPixel
command and it is working great except for Jagged Edges on
the outside of... more >>
How can I create a ThumbNail of a Metafile in ASP.NET?
Posted by Roberto López at 7/29/2003 12:47:19 AM
Hello all,
I am developing an ASP.NET applicattion that is a Image Database Catalog,
the images are of various types including BMP,GIF,JPEG,... and WMF. When the
user search for images i show a gallery of results generating thumbnails
whit GetThumbnail method of the image class. It runs ok wit... more >>
Algorithm to position the elemnts on a graph
Posted by Rahul Kumar at 7/28/2003 1:45:34 PM
Hi
I am looking for an algorithm which can help me render a graph efficiently
on the canvas. My graph is a dynamic network of interconnected nodes. Each
node can connect to one or more nodes. The algorithms should be able to
place the nodes on a 2D plane in such a way that the there is a minim... more >>
FillPie problem
Posted by Konrad R. at 7/28/2003 5:51:40 AM
Hi
I want to draw piechart, and have to compute regions that
FillPie function fills (i have to have coordinates of that
regions, not only fill them)
once i am using square as a bounding box all works ok, but
when i switch to ellipse (to draw 3D mode pie chart), it
is a bit strange, ple... more >>
transparent image matte
Posted by robbeers NO[at]SPAM hotmail.com at 7/27/2003 6:31:22 PM
I am loading a gif with alpha transparency that was created in
fireworks. I have the ability to change the matte in fireworks so the
edge matches whatever background it will be placed on. My question
is: how can I duplicate this matte behavior in c#? I would like to
dynamically change the mat... more >>
Double buffering technique
Posted by Gerben van Loon at 7/26/2003 3:37:08 PM
Hi,
=20
I just read this article about double buffering in GDI+ :
=20
http://windowsforms.net/articles/windowsformspainting.aspx
=20
He shows how to double buffer with this kind of code:
=20
//create our offscreen bitmap
Bitmap localBitmap =3D new =
Bitmap(ClientRectangle.Width,ClientRecta... more >>
Why am I not able to print multiple copies?
Posted by Vijayakrishna Pondala at 7/25/2003 6:19:05 PM
Hi,
I wrote a sample C# code for printing. I want to print multiple copies =
of the same document, where the num of copies are to be specified by =
user. Here is my code snippet. When I made a QuickWatch =
dlg.PrinterSettings in filePrintMenuItem_Click(), it shows the copies =
=3D 1 always, eve... more >>
Generic error occurred in GDI+ when saving jpeg
Posted by Steve Wilkinson at 7/25/2003 2:26:02 PM
I know there have been many posts on this topic, and I have looked at them
but I am still having problems.
I am trying to load from a jpeg image and then save back to the same
filename, I can load the image without any problem, once loaded I can delete
the original file (so it is not a locking... more >>
Grainy images based on a hex value
Posted by toaddreyfuss NO[at]SPAM hotmail.com at 7/25/2003 12:28:47 PM
Forgive me, I'm a graphics newbie. I'm trying to programmatically
create a bitmap image with a hex (#9EBADC) color as the background. I
have written out to the file using SetPixel but the output looks
grainy and on edit with Photoshop it doesn't really even contain the
color.
Here's the cod... more >>
Image size in memory
Posted by Jaime at 7/25/2003 9:45:30 AM
Does the Image.FromStream function keep the image
uncompressed? I am loading a multipage tiff file, then i
have a function that splits all the pages into an image
array. Now the size occupied in memory of the array
compared to the mTIFF file is huge. I would say the
growth is exponentia... more >>
Attn Bob
Posted by comhari at 7/24/2003 10:29:12 AM
Dear sir,
did u find any soln for drawimage in paint Vs DrawImage in
CreateGraphics()
Regards
Hari... more >>
drawing RGB frames / playing movie
Posted by phoenix at 7/23/2003 7:13:53 PM
Hello,
I asked the same question in the general dotnet group but got no answer
there so I'm trying it again here.
I'm having a YUV file (4:2:0 format) that I want to play. Problem is that
mediaplayer and directx doesn't seem to recognize the YUV-format and fail to
play it. Does somebody k... more >>
Borders around Polygons
Posted by Dim at 7/23/2003 2:09:55 PM
A tricky question:
Think a blue Panel object.
We create a graphicspath obj and add a polygon which is three points =
triangle
GraphicsPath gp =3D new GraphicsPath();
PointF[] pp =3D {new PointF(30,30), new PointF(30,60), new =
PointF(60,40};
gp.AddPolygon(pp);
After that w... more >>
flickering when changing both height and top
Posted by Logan McKinley at 7/23/2003 9:26:09 AM
I have a picturebox that can be resized at runtime and when both the height
and
the top change the control flickers. I am double buffering the control and
using AllPaintingInWmPaint | DoubleBuffer | UserPaint but
it is not helping.
Thanks in advance,
~Logan
... more >>
How to show ActiveX whitout AxHost?
Posted by Kuba Florczyk at 7/23/2003 4:51:22 AM
Hi
Do anybody know how to show ActiveX whitout AxHost? For example i got
wrapper to ActiveX and now i don't know how AxHost shows ActiveX.
I must do it, because i think AxHost made it wrong and i got some problems
with using ActiveX.
Second question is how AxHost do it? I mean how he show... more >>
repost: CMYK? Is it possible?
Posted by sirshannon at 7/22/2003 12:40:21 PM
I think Tiff is the preferred format, but anything that correctly preserves
the CMYK colors will work.
I have looked but can not find any useful information on imageattributes.
No examples or anything. Do you know of anywhere that could fill me in a
little more on the solution you suggested b... more >>
Shapes drawn at runtime disappear
Posted by Gerben van Loon at 7/21/2003 8:26:34 PM
Hello,
I'm drawing a simple shape at runtime on my form, with the following code
for example:
Graphics g = this.CreateGraphics();
g.FillRectangle(Brushes.Yellow,50,50,150,150);
g.Dispose();
The rectangle displays on the form of course, but when I minimize the form
and after ... more >>
Pixels vs Points
Posted by OldFriend99 at 7/21/2003 11:02:39 AM
This is probably a really stupid question but what is the difference between
pixels and points. How do you convert from pixels to points?
EG 300 pixels = ??? points
... more >>
Capturing a control's image WHILE obstructed or minimized.....?
Posted by a.jure NO[at]SPAM mail.portland.co.uk at 7/21/2003 7:12:01 AM
I have spent tremendous amounts of time looking for examples that
might do this. There has to be a way. I have managed to BitBlt the
control successfully but if something obstructs the control... it gets
included also. Anyone have a solution to this?... more >>
Resizing image
Posted by ianwalsh NO[at]SPAM hbosplc.com at 7/21/2003 6:25:33 AM
All,
I'm using the following code to resize a jpg automatically. Every
image I produce is at 96dpi, which is the display settings for the
monitor. I proved this by increasing to 110dpi and the code then
produced the thumbnail at 110dpi. Can I override this? Thanks in
advance.
Bitmap bm=(B... more >>
Page Fault in HPMWINXC.DLL at 0011:00003c83
Posted by Shawn at 7/20/2003 2:37:35 PM
On certain HP printers (720C and 1150C) on Windows 98 I
get the following error when I try to query printer
settings:
Does anybody know how to get around this or what is
causing it? I get it on the 1.0 and 1.1 Framework?
invalid page fault in
module HPMWINXC.DLL at 0011:00003c83.
Regi... more >>
Darwing Question - Now in the correct forum
Posted by Smoke at 7/20/2003 12:41:50 PM
Im trying to do a BarGraph, so each second i draw a new value (just a small rectangle as a bar) on the right of a Panel.
My question is, that each second i have to move the actual drawed picture in the panel 3 pixels to the left, so i leave space for
the new bar that i have to add
How do i do tha... more >>
GDI+ Or DX9 for custom controls?
Posted by Smoke at 7/19/2003 7:52:01 PM
I'm making some custom controls which basically are Charts, line chart and bar chart
They are working fine with GDI+, with some small flicks but its nothing to worry
I'm kind a newbie on this scene, the way I did it was using a Panel control and in the Paint event I draw some lines, boxes, using... more >>
.NET graphics book
Posted by andreww NO[at]SPAM crabel.com at 7/18/2003 2:01:31 PM
Does anyone have any opinion about this book:
".NET Graphics and Printing"
Peter G. Aitken
ISBN 1931097043
http://www.amazon.com/exec/obidos/ASIN/1931097046/
Can someone new to both Windows graphics and .NET pick up both at the
same time using this book?
I am particularly interested i... more >>
Regions of overlapping windows.
Posted by Paul Mason at 7/18/2003 11:00:51 AM
Hi
I have two windows that overlap (with the "child" window overlapping the
"parent" window, both of which are non-rectangular and have custom regions).
What I want to do is modify the window region of the child window just
before it is shown to exclude the part that overlaps with the parent
... more >>
How to reposition the text in a button by using GenericTypographic
Posted by Buddy at 7/18/2003 8:39:29 AM
Hello,
Can someone point me to some example code that shows how
to paint the text in a button control. I basically want to
reposition the text so it does not wrap.
Thanks... more >>
.NET produced images spool very large to my printer! Should I be concerned?
Posted by davidf NO[at]SPAM dayspring.com at 7/17/2003 9:39:28 AM
Greetings all.
I have .NET service which takes a series of images, draws on them
with the drawing objects, then sends them in one print job with
multiple pages (up to 15pages) to a printer. This was not a trivial
excercise - thanks to any folks reading this who responded to my
previous post... more >>
So close and yet so far.. convert DIB to Bitmap
Posted by brendan NO[at]SPAM scanoptics.com.au at 7/17/2003 12:48:23 AM
Hi Guys..
I've been going crazy for two days now, and I feel I'm very close.
I've got a DLL that returns a HANDLE to a DIB (GDI). I've retrieved
the BITMAPINFO structure, created a Bitmap and locked the bits.
However, when I try and copy the data in, I always get an unhandled
exception. I've ... more >>
CustomLineCap issue 2
Posted by James Westgate at 7/16/2003 9:40:45 AM
Hi All,
Trying to create a customlinecap as the standard line caps
for a pen object are drawn very small and there doesnt
seem to be a way of making them bigger!
When creating a custom line cap (see code below), an
error 'Not Implemented' is returned. Whats the deal here?
Also see prev... more >>
Why does the text look dirty?
Posted by Abraham Luna (Attilanet.com) at 7/15/2003 12:54:06 PM
i have the following code to generate a gif
(http://www.attilanet.com/textattilanet.gif)
.. the text looks dirty and when you zoom in you can see the different colors
that make it dirty. what else do i need to do in order to make the text
cleaner?
//Temp Bitmap
Bitmap bmpTempText = new B... more >>
Display Multiple Image Files to Picture Box
Posted by Ted at 7/14/2003 8:58:05 PM
Would anyone know how to control the display size for
multiple image/jpeg files to a windows form or asp.net
picture box control? The .jpeg files should position or
display side by side. I can pull attachments into a
Picture Box, however I have no control of its display size
or positions... more >>
DirectX 9 Example for printing strings to a surface??
Posted by rudarko NO[at]SPAM yahoo.com at 7/14/2003 9:44:31 AM
Can anyone show me how to change font type and font size when I print
to a surface???
I use direct 9 and vb.net.
Private back As Surface = Nothing
public sub ...
backB.ColorFill(Color.Blue)
backB.DrawText(n, 100, "sasasasa", False)
end sub
thanks... more >>
The elusive Flat ComboBox
Posted by Brian Link at 7/14/2003 3:26:30 AM
This is gonna drive me crazy.
I want a flat combobox. I've been through several examples, all
written in C#, which I don't understand that well. Most don't subclass
the combo, but I need all the ComboBox's functionality..
Conceptually, I'm thinking I should subclass a ComboBox, override som... more >>
Removable Media
Posted by james at 7/12/2003 3:24:12 PM
I am trying to get a simple image editing program I am writing in VB.NET to
access
the information from a Compact Flash Card in Windows XP. Windows Explorer
sees the Removable Media just fine and even reads the EXIF data too. But,
the OpenFile Dialog in VB.NET does not see it at all.
Is ther... more >>
Modify the width of the vertical scrollbar in a listbox
Posted by Grig Petrescu at 7/12/2003 9:56:44 AM
i don't know if this is the group for this question, but here it is:
i'd like to enlarge the width of the verical scroolbar in a control like
listbox or combobox or datagrid.
I searched a lot about a solution in C# or VBNET but i found nothing.
Is there a resonable way to do this ?
Thanks i... more >>
DashStyle enum
Posted by Lucas at 7/11/2003 1:31:18 PM
I'm am trying to use the DashStyle members from the GDI+
API but I keep getting the error:
c:\myPrograms\tests\c\i\main.cpp(260): error
C2065: 'DashStyleSolid' : undeclared identifier
and:
c:\myPrograms\tests\c\i\main.cpp(260): error
C2039: 'DashStyleSolid' : is not a member
of 'Gdiplus... more >>
help creating bitmap from string
Posted by Chuck Haeberle at 7/10/2003 3:28:45 PM
This is in an ASPX page but I've included references for
System.Windows.Forms to have access to the controls I need:
I'm trying to create a bitmap render of an error message captured when
display of an image fails. The code which follows compiles and executes but
the returned image always is ... more >>
Multi page tiff - one page out to web page
Posted by Chuck Haeberle at 7/10/2003 9:00:35 AM
I have an ASP/VB6/COM+ application which uses the Kodak Imaging components
(which are pretty bad to work with) to strip a multipage tiff (from a fax
server) down to a single page and then converted to JPG and streamed to a
browser by means of a Response.BinaryWrite. Basically we have a page with... more >>
Drawing grid in GDI+ is slooow
Posted by James Westgate at 7/10/2003 5:56:46 AM
Hi All,
Apologies if this post appears more than once, wonderful
ie6 crashed on me as I was submitting the last post.
I have to implement drawing grid onto a graphics object,
using suppied parameters - the problem is that it is very
slow and adversely affects performance to an unacceptab... more >>
Getting rotation, scale etc from Matrix
Posted by Robin Debreuil at 7/10/2003 12:50:22 AM
Hi,
I have the original bounds and center of an object, the matrix, and the
final points. What is the best way to get the rotation, scales, skews that
have been applied (from the Matrix.Elements I assume)? Right now I'm trying
to reverse it, first taking off the translation, then the shear x a... more >>
Bob Got My BMPs?
Posted by Hariharan at 7/9/2003 11:09:45 PM
Dear Sir,
Did u get the screen shots i've sent.
hari... more >>
Dispose GDI+ object
Posted by #Hai at 7/9/2003 10:50:45 PM
Hi,
I know that in C#, destructor is a finalize method. This means that the
destructor is only called when the Garbage collector does it job. But the
the GC is always does it job when the memory is full. Is there any thing
wrong ?
If it is true, now we consider GDI object (such as Image, Grap... more >>
|