A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows XP » Printing and Faxing with Windows XP
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Problem in StretchDiBits with SetWorldTansform.



 
 
Thread Tools Display Modes
  #1  
Old September 11th 09, 08:04 AM posted to microsoft.public.windowsxp.print_fax
Ajay
external usenet poster
 
Posts: 4
Default Problem in StretchDiBits with SetWorldTansform.

Hi,

I am doing SetWorldTransform in a printer DC to rotate the data by 90 degree
and scale it by half. But I see that StretchDiBits is unable to put any data
on DC even though it returns the correct number of scan lines. My DC width,
height is 4500,6000. If i dont do the rotation but keep the scaling then it
works. Also if i divide the image in smaller parts then StretchDuBits works
again. Do anyone have any idea why i have to divide the image while rotating?
I am already doing SetGraphicsMode(GM_ADVANCED) prior to StretchDiBits().

Thanks a lot.
Ajay
Ads
  #2  
Old September 14th 09, 11:07 AM posted to microsoft.public.windowsxp.print_fax
Chuck
external usenet poster
 
Posts: 637
Default Problem in StretchDiBits with SetWorldTansform.

Sounds like buffer over run to me.

"ajay" wrote in message
...
Hi,

I am doing SetWorldTransform in a printer DC to rotate the data by 90
degree
and scale it by half. But I see that StretchDiBits is unable to put any
data
on DC even though it returns the correct number of scan lines. My DC
width,
height is 4500,6000. If i dont do the rotation but keep the scaling then
it
works. Also if i divide the image in smaller parts then StretchDuBits
works
again. Do anyone have any idea why i have to divide the image while
rotating?
I am already doing SetGraphicsMode(GM_ADVANCED) prior to StretchDiBits().

Thanks a lot.
Ajay



  #3  
Old September 18th 09, 12:17 PM posted to microsoft.public.windowsxp.print_fax
ajay
external usenet poster
 
Posts: 3
Default Problem in StretchDiBits with SetWorldTansform.

Hi Chuck,

Can you please explain what kind of buffer overrun. Do StretchDiBits
have some internal buffer to perform SetWorldTransform.
How can i calculate no. of scan lines to which would not create
problem. My source bitmap height width is 1,2250 and destination
width, height is 6000, 2250. If i draw divide the source image in 1380
scan lines then problem dont come but after that there is loss of
data.

Thanks,
Ajay
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off






All times are GMT +1. The time now is 01:11 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.