DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Wed, 25 Jul 2007 17:02:10 -0000,    posted on: microsoft.public.dotnet.framework.drawing        back       

Thread Index
  1    Gina_Marano
          2    Michael Phillips, Jr. 0.c0m
          3    Bob Powell [MVP]
          4    Gina_Marano
          5    Gina_Marano


Metafile to BMP (or image type) need to retain quality   
Hey All,

I have a metafile that I want to convert to an image format. The main
purpose behind this is to rotate the image 180 degrees. However, the
quality is quite pixilated. What is the best way to do this?

basically I want to convert the metafile to an image format, rotate
180 then print it.

The metafile is generated from
Microsoft.Reporting.WinForms.LocalReport.Rendor (Visual Studio
reportviewer).

If I print it out directly without converting to image the quality is
there.

Thanks for any help

~Gina_M~
Date:Wed, 25 Jul 2007 17:02:10 -0000   Author:  

Re: Metafile to BMP (or image type) need to retain quality   

> I have a metafile that I want to convert to an image format. The main
> purpose behind this is to rotate the image 180 degrees. However, the
> quality is quite pixilated. What is the best way to do this?


One way is to not convert the metafile at all.  Use 
Graphics.RotateTransform(180.0F) while printing your metafile.

"Gina_Marano"  wrote in message 
news:1185382930.850100.138260@x35g2000prf.googlegroups.com...

> Hey All,
>
> I have a metafile that I want to convert to an image format. The main
> purpose behind this is to rotate the image 180 degrees. However, the
> quality is quite pixilated. What is the best way to do this?
>
> basically I want to convert the metafile to an image format, rotate
> 180 then print it.
>
> The metafile is generated from
> Microsoft.Reporting.WinForms.LocalReport.Rendor (Visual Studio
> reportviewer).
>
> If I print it out directly without converting to image the quality is
> there.
>
> Thanks for any help
>
> ~Gina_M~
> 
Date:Wed, 25 Jul 2007 13:31:05 -0400   Author:  

Re: Metafile to BMP (or image type) need to retain quality   
I would be willing to bet money that you are using the printer DC 
settings to determine the resolution of the image. Remember that this is 
given in 10ths of an inch NOT in pixels. To obtain the correct image 
size for your printable bitmap you should multiply the declared size by 
the DPI/10 of that dimension.

Remember also that not all printers have square pixels so you may need 
to create an image with a different horizontal resolution to vertical 
resolution.

-- 
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.





Gina_Marano wrote:

> Hey All,
> 
> I have a metafile that I want to convert to an image format. The main
> purpose behind this is to rotate the image 180 degrees. However, the
> quality is quite pixilated. What is the best way to do this?
> 
> basically I want to convert the metafile to an image format, rotate
> 180 then print it.
> 
> The metafile is generated from
> Microsoft.Reporting.WinForms.LocalReport.Rendor (Visual Studio
> reportviewer).
> 
> If I print it out directly without converting to image the quality is
> there.
> 
> Thanks for any help
> 
> ~Gina_M~
> 
Date:Thu, 26 Jul 2007 20:56:45 +0200   Author:  

Re: Metafile to BMP (or image type) need to retain quality   
On Jul 25, 10:31 am, "Michael Phillips, Jr."
<mphillip...@nospam.jun0.c0m> wrote:

> > I have a metafile that I want to convert to an image format. The main
> > purpose behind this is to rotate the image 180 degrees. However, the
> > quality is quite pixilated. What is the best way to do this?
>
> One way is to not convert the metafile at all.  Use
> Graphics.RotateTransform(180.0F) while printing your metafile.
>
> "Gina_Marano"  wrote in message
>
> news:1185382930.850100.138260@x35g2000prf.googlegroups.com...
>
>
>
> > Hey All,
>
> > I have a metafile that I want to convert to an image format. The main
> > purpose behind this is to rotate the image 180 degrees. However, the
> > quality is quite pixilated. What is the best way to do this?
>
> > basically I want to convert the metafile to an image format, rotate
> > 180 then print it.
>
> > The metafile is generated from
> > Microsoft.Reporting.WinForms.LocalReport.Rendor (Visual Studio
> > reportviewer).
>
> > If I print it out directly without converting to image the quality is
> > there.
>
> > Thanks for any help
>
> > ~Gina_M~- Hide quoted text -
>
> - Show quoted text -



Thanks guys for the help! Yes, I was just following MS examples and
was rendering to a metafile instead of a BMP. If I render to a BMP
then I just rotate and all is good. Sometimes I make things too hard.

~Gina_M~
Date:Fri, 03 Aug 2007 16:44:14 -0000   Author:  

Re: Metafile to BMP (or image type) need to retain quality   
Bob,

Is there a newsgroup for the visual studios report viewer?

~Gina_M~
Date:Fri, 03 Aug 2007 16:45:18 -0000   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us