|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How to draw graphics on a bitmap ?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 ? "Oberfuhrer" <henric***@yahoo.no> schrieb: 'Graphics.FromImage'.> Is it possible to get a graphics object for a bitmap ? -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> Herfried,
> "Oberfuhrer" <henric***@yahoo.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]" <notmyfirstn***@planet.nl> schrieb: What if this is the person's last name?> 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. -- 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=oberfuhrer&num=10&hl=en&c2coff=1&btnG=Google+Search&as_epq=&as_oq=&as_eq=&lr=lang_no&as_ft=i&as_filetype=&as_qdr=all&as_occt=any&as_dt=i&as_sitesearch=&as_rights=&safe=images Cor Show quoteHide quote "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> schreef in bericht news:%23hL6iphXGHA.3740@TK2MSFTNGP03.phx.gbl... > "Cor Ligthert [MVP]" <notmyfirstn***@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]" <notmyfirstn***@planet.nl> wrote in message You don't REALLY think I am Homer J Simpson do you??news:%23kCiGrfXGHA.1476@TK2MSFTNGP03.phx.gbl... > Herfried, > >> "Oberfuhrer" <henric***@yahoo.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.
Show quote
Hide quote
"Oberfuhrer" <henric***@yahoo.no> wrote in message There are many ways to do that. One is to link in a chart tool from, say, news:kYidnVGvY-UNhqHZRVnzvA@telenor.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 ? 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" <nob***@nowhere.com> schreef in bericht news:9SW_f.47645$K11.6943@clgrps12...Show quoteHide quote > > "Oberfuhrer" <henric***@yahoo.no> wrote in message > news:kYidnVGvY-UNhqHZRVnzvA@telenor.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. > > > > 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. -- Show quoteHide quoteBob 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" <henric***@yahoo.no> wrote in message news:kYidnVGvY-UNhqHZRVnzvA@telenor.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 ? > > > > > > > >
Check if TIF file in use
Data form wizard in VS.NET 2005 Request for permission of the type 'System.Security.Permissions.RegistryPermission...' failed Tabelle collegate in Access [VB .Net 2005] Shared Methods In A Class ListView FocusedItem Is there really no way to turn the background compiler in VB.NET? Tabbing not working in vb 6.0 forms form refresh? repaint? doevents? file system watcher prevents PC shutdown |
|||||||||||||||||||||||