473,385 Members | 1,901 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Printing in GDI+

2
Im trying to print a tif file with size 975x839 with resolution 300x300.

Im printing this onto a virtual printer which takes a size of 1720x2200 200x196 dpi.

Im using the following code

image.SelectActiveFrame( &pageGuid, i );
graphics.SetPageUnit( UnitInch );
graphics.SetInterpolationMode( InterpolationModeDefault );
width = image.GetWidth() / image.GetHorizontalResolution();
height = image.GetHeight() / image.GetVerticalResolution();
graphics.DrawImage(&image, 0.f, 0.f, width, height );


The output that i get from this print job is a small compressed image of the original about (580x540) on 1720x2200 page !!

any ideas what i can do here ...
Jan 22 '07 #1
0 1037

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Mr. B | last post by:
This is driving me NUTZ!!! I've been screwing around on this for a week now. And I have tried to find examples similar to what I have (nada). Got lots of streaming a TXT file... bah! I am...
1
by: ZS | last post by:
Hello, Please can you assit me in printing a text at an angle. Basically a set of words and each work must be printed at an angle. Thank you.
1
by: Bill Burke | last post by:
I have created a "Certificate of Completion" in C# .net and have a typical problem of not being able to print this in landscape mode without user intervention. The certificate is a web user control...
2
by: Alvo von Cossel I | last post by:
hi, i have a picturebox on a form. if i want to print, i press a print button. it doesn't print, though. this is because i don't know any code for printing. does anyone know any printing code? ...
3
by: Mikael Syska | last post by:
Hi, I'm reading Beginning Visual C-Sharp by wrox, great book by the way. In the book the describe how I can print, and it works great, but what if I has like 300 lines, that wont fit on a...
4
by: Arif | last post by:
I C# code prints very slow as compared to a third party barcode printing software. That software prints approximately 10 labels in 2 seconds while my C# code prints 10 labels in 5 to 6 seconds. And...
5
by: Lloyd Dupont | last post by:
I'm trying to print some of my document. The problem is, the rendering of the document is not done through GDI+ at all but through plain old GDI, and I need it like that as I am using Uniscribe to...
3
by: moko | last post by:
Can the System.Drawing.Print namespace (and it's print methods) be used in ASP.NET ? Can we direct an output to a printer using these classes ? If not, what is the alternative ?
5
by: Lloyd Dupont | last post by:
In my (C#) code I have some painting methods using Interop and GDI (win32). Unfortunately, as you might know, you have to apply some transformation to your space and fonts if you want to achieve...
2
by: user | last post by:
Hi all... i am trying to print an image using GDI - but the only thing i get is a black rectangle. Does anybody know what is wrong, or how else to get the bitmap on the printer (GDI+ is not...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.