I am an old mathematician, who in my sparetime work on a topic oriented math
application.
I have converted from old, dry Fortran to the more intuitive and juicy
VB.net and Windows.
In particular i would like to have options to draw graphics straight to a
bitmap object.
A typical example would be to save a plot of a function y=f(x) drawn on a
control.
To figure out where to set individual pixels for lines and fonts may be
possible after some struggle,
but maybe there is a better approach around? Is it possible to get a
graphics object for a bitmap ? 8 10274
"Oberfuhrer " <he*******@yaho o.no> schrieb: Is it possible to get a graphics object for a bitmap ?
'Graphics.FromI mage'.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
"Oberfuhrer " <he*******@yaho o.no> wrote in message
news:kY******** ************@te lenor.com... I am an old mathematician, who in my sparetime work on a topic oriented math application.
I have converted from old, dry Fortran to the more intuitive and juicy VB.net and Windows.
In particular i would like to have options to draw graphics straight to a bitmap object. A typical example would be to save a plot of a function y=f(x) drawn on a control.
To figure out where to set individual pixels for lines and fonts may be possible after some struggle, but maybe there is a better approach around? Is it possible to get a graphics object for a bitmap ?
There are many ways to do that. One is to link in a chart tool from, say,
Excel and use that. Or you can draw directly onto a PictureBox which I have
done to emulate a plotter. There are graphics primitives in the system.
Hi an other good reference to look at for drawing in dot net is http://www.bobpowell.net/
Greetz Peter
--
Programming today is a race between software engineers striving to build
bigger and better idiot-proof programs, and the Universe trying to produce
bigger and better idiots. So far, the Universe is winning. (Rich Cook)
"Homer J Simpson" <no****@nowhere .com> schreef in bericht
news:9SW_f.4764 5$K11.6943@clgr ps12... "Oberfuhrer " <he*******@yaho o.no> wrote in message news:kY******** ************@te lenor.com... I am an old mathematician, who in my sparetime work on a topic oriented math application.
I have converted from old, dry Fortran to the more intuitive and juicy VB.net and Windows.
In particular i would like to have options to draw graphics straight to
a bitmap object. A typical example would be to save a plot of a function y=f(x) drawn on
a control.
To figure out where to set individual pixels for lines and fonts may be possible after some struggle, but maybe there is a better approach around? Is it possible to get a graphics object for a bitmap ? There are many ways to do that. One is to link in a chart tool from, say, Excel and use that. Or you can draw directly onto a PictureBox which I
have done to emulate a plotter. There are graphics primitives in the system.
Herfried, "Oberfuhrer " <he*******@yaho o.no> schrieb:
You answer questions from people with this kind of nicks? If it was from
Germany, Swiss or Austria, I even could understand it because I do not know
if it is used by instance at the scouts.
In this case it is somebody from Norway and therefore it can only mean
something as this, what is my only result in Wikepedia. http://en.wikipedia.org/wiki/Oberf%C3%BChrer
Let us keep this newsgroup free from politics or things that can hurt
people.
Just my opinion.
Cor
"Cor Ligthert [MVP]" <no************ @planet.nl> schrieb: You answer questions from people with this kind of nicks? If it was from Germany, Swiss or Austria, I even could understand it because I do not know if it is used by instance at the scouts.
What if this is the person's last name?
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Herfried, What if this is the person's last name?
Can be, but would be very unlikely for somebody from Norway they have
suffered from last Europen war you know. More if you look in the Norge
language for oberfuhrer on Google. http://www.google.com/search?as_q=ob...s=&safe=images
Cor
"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> schreef in bericht
news:%2******** ********@TK2MSF TNGP03.phx.gbl. .. "Cor Ligthert [MVP]" <no************ @planet.nl> schrieb: You answer questions from people with this kind of nicks? If it was from Germany, Swiss or Austria, I even could understand it because I do not know if it is used by instance at the scouts.
What if this is the person's last name?
-- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/>
"Cor Ligthert [MVP]" <no************ @planet.nl> wrote in message
news:%2******** ********@TK2MSF TNGP03.phx.gbl. .. Herfried,
"Oberfuhrer " <he*******@yaho o.no> schrieb:
You answer questions from people with this kind of nicks? If it was from Germany, Swiss or Austria, I even could understand it because I do not know if it is used by instance at the scouts.
You don't REALLY think I am Homer J Simpson do you??
The GDI+ FAQ has the answer to this question..
There is a caveat however...
You cannot draw directly onto a bitmap having an indexed pixel format. They
will throw an exception. These include some of the TIFF formats and GIF.
--
Bob Powell [MVP]
Visual C#, System.Drawing
Ramuseco Limited .NET consulting http://www.ramuseco.com
Find great Windows Forms articles in Windows Forms Tips and Tricks http://www.bobpowell.net/tipstricks.htm
Answer those GDI+ questions with the GDI+ FAQ http://www.bobpowell.net/faqmain.htm
All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
"Oberfuhrer " <he*******@yaho o.no> wrote in message
news:kY******** ************@te lenor.com... I am an old mathematician, who in my sparetime work on a topic oriented math application.
I have converted from old, dry Fortran to the more intuitive and juicy VB.net and Windows.
In particular i would like to have options to draw graphics straight to a bitmap object. A typical example would be to save a plot of a function y=f(x) drawn on a control.
To figure out where to set individual pixels for lines and fonts may be possible after some struggle, but maybe there is a better approach around? Is it possible to get a graphics object for a bitmap ?
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: DraguVaso |
last post by:
Hi,
I have an inherited DataGrid, that does lots of extra stuff. For exemple
drawing a backgroundimage in every cell. The problem is that it's taking too
much time (using gdi+), so I want to do it using DirectX. I downloaded
already the DSK etc, but I can't find how I need to draw an image on a given
position. I don't need stuff to write advanced 3D-games, just painting that
image. Can anybody help me with this? I'm already looking for...
|
by: Richard |
last post by:
I have a requirement to put a GDI style circle or rectangle border around
the selected row of a datagrid/ It will overlap into the row above and below
the selected row. Doing this in a the OnPaint of a subclassed
DataGridTextBoxColum dos not seem like a practical way to do it.
I have subclassed a DataGrid and overridden the OnPaint as such:
|
by: benfly08 |
last post by:
Hi, guys.
I have a program to draw bar/pie chart based on the data i hard coded in it. However, my image comes with "BLACK" background color. I don't know how to fix this. The code snippet is below:
chartGenerator.vb class:
Imports System.Drawing.Imaging
Public Class chartGenerator
Private myImage As Bitmap
|
by: active |
last post by:
I've been looking on the Internet for a way to convert a DIB to a Bitmap
without success.
Now I'm wondering if that is the approach I should be taking.
All I want to do is display the DIB or draw it into a Bitmap.
Is there a graphics method that can help?
|
by: Tom |
last post by:
Hey,
I have tried drawing a grid onto my control using the following:
Private Sub VGUI_Grid(...) Handles MyBase.Paint
Dim new_bitmap As Bitmap
' Make a new bitmap that fits the PictureBox.
new_bitmap = New Bitmap(Me.Width, Me.Height)
| |
by: Tem |
last post by:
I need to draw a black lined circle and save it as a gif file. Can this be
done with wpf or do I need to use GDI+
The examples I found seem to only apply to UI elements not a file.
Thank you
Tem
|
by: kam45 |
last post by:
I did one program that draws a line with two squares at the ends and I can just click and extend each ends. It works ok but I need to move the whole line. Would anyone knows how?
Private Const gs As Integer = 34
Private Const hw As Integer = 6
Private Const hhw As Integer = hw \ 2
Private bf As Bitmap
Private drag As Integer = -1
Private pts() As Point
Private Sub Form1_Load(ByVal sender As System.Object,...
|
by: kimiraikkonen |
last post by:
Hi,
If previous post was missing, here's the complete one:
I'm trying to draw a rectange on a picturebox image using mouse move
event but the problem is that the rectangle selection / drawing cannot
be done from starting from bottom-right to up-left. The only selection
i'm allowed to do is starting from top-left towards bottom-right
orientation.
The code is:
|
by: martinsmith160 |
last post by:
Hi all
I am trying to create a level builder tool for a final year project and im having some problems drawing. I have placed a picture box within a panel so i can scroll around the image which is working fine. My aim is to double click the picture box and the desired image will be drawn at the mouse position. This works fine unless I scroll or minimise the form because the image isnt repainted after movement. I looked up drawing the image to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |