Hello,
Why is strechblt function being called ? What is the stretcheing factor ?
Adi
NRIs, Choose the best solution.
http://creative.mediaturf.net/creatives/citibankrca/rca_msntagofline.htm
With Citibank Rupee Checking Account!
Hello,
Why is strechblt function being called ? What is the stretcheing factor ?
Adi
NRIs, Choose the best solution.
http://creative.mediaturf.net/creatives/citibankrca/rca_msntagofline.htm
With Citibank Rupee Checking Account!
adi bhapse wrote:
Hello,
Why is strechblt function being called ? What is the stretcheing factor ?
It is being called because applications want to use it. You can compute
the stretch/shrink factor by dividing the destination width by the
source width, and the destination height by the source height. The two
factors need not be the same. However, the numeric factor is usually
not very interesting. Most mindless stretchblts use a simple DDA, where
you don’t need a single “stretch factor”.
–
Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.
Tim Roberts,
What is the relation in the pixels and DPI?
Adi
From: Tim Roberts
>Reply-To: “Windows System Software Devs Interest List”
>
>To: “Windows System Software Devs Interest List”
>Subject: Re: [ntdev] Printer Driver Problem abt DrvStretchBlt.
>Date: Tue, 28 Jun 2005 10:00:40 -0700
>
>adi bhapse wrote:
>
>>Hello,
>>
>>Why is strechblt function being called ? What is the stretcheing factor ?
>
>
>It is being called because applications want to use it. You can compute
>the stretch/shrink factor by dividing the destination width by the source
>width, and the destination height by the source height. The two factors
>need not be the same. However, the numeric factor is usually not very
>interesting. Most mindless stretchblts use a simple DDA, where you don’t
>need a single “stretch factor”.
>
>–
>Tim Roberts, xxxxx@probo.com
>Providenza & Boekelheide, Inc.
>
>
>—
>Questions? First check the Kernel Driver FAQ at
>http://www.osronline.com/article.cfm?id=256
>
>You are currently subscribed to ntdev as: xxxxx@hotmail.com
>To unsubscribe send a blank email to xxxxx@lists.osr.com
_________________________________________________________________
Claim your space online! http://www.msn.co.in/spaces Share your world for
free!
adi bhapse wrote:
Tim Roberts,
What is the relation in the pixels and DPI?
“DPI” stands for “dots per inch”. A pixel is a dot.
–
Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.
Sir,
How do I convert the pixels into DPI, i.e. I’m getting the data as pixels
and I need to send it to the printer, so how I can send the image to the
printer?
Adi
From: Tim Roberts
>Reply-To: “Windows System Software Devs Interest List”
>
>To: “Windows System Software Devs Interest List”
>Subject: Re: [ntdev] Printer Driver Problem abt DrvStretchBlt.
>Date: Wed, 29 Jun 2005 09:44:47 -0700
>
>adi bhapse wrote:
>
>>Tim Roberts,
>>
>>What is the relation in the pixels and DPI?
>
>
>“DPI” stands for “dots per inch”. A pixel is a dot.
>
>–
>Tim Roberts, xxxxx@probo.com
>Providenza & Boekelheide, Inc.
>
>
>—
>Questions? First check the Kernel Driver FAQ at
>http://www.osronline.com/article.cfm?id=256
>
>You are currently subscribed to ntdev as: xxxxx@hotmail.com
>To unsubscribe send a blank email to xxxxx@lists.osr.com
_________________________________________________________________
Top-of-the-line jobs!.
http://creative.mediaturf.net/creatives/timesjobs/hotmail_TOL.htm Log on to
timesjobs.com and apply TODAY!
adi bhapse wrote:
Sir,
How do I convert the pixels into DPI, i.e. I’m getting the data as
pixels and I need to send it to the printer, so how I can send the
image to the printer?
Again, this doesn’t make much sense. You don’t convert pixels to DPI.
You get pixels from GDI, and you send pixels to the printer. As long as
you have properly reported your printer’s DPI value, GDI will send you
coordinates and sizes in your printer’s native measurements. That’s why
the application is calling StretchBlt: it wants a 3 inch x 5 inch image
(for example), and the number of pixels needed to fill that area differs
depending on the DPI of the printer.
However, the Windows StretchBlt algorithm sucks, so most real
applications have their own stretch algorithms.
–
Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.