Autor Beitrag
FriFra
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 557

Win XP Prof, Win XP Home,Win Server 2003,Win 98SE,Win 2000,Win NT4,Win 3.11,Suse Linux 7.3 Prof,Suse Linux 8.0 Prof
D2k5 Prof, D7 Prof, D5 Standard, D3 Prof, K3 Prof
BeitragVerfasst: Do 20.03.03 12:46 
Ich habe iom Moment ein seltsames Problem. Bei mir funktioniert folgender Code:
ausblenden Quelltext
1:
2:
3:
BeginDoc;
Canvas.StretchDraw(PR, PImg.Picture.Bitmap);
EndDoc;

Wobei das Bitmap vor dem Ausdruck noch passend zur Druckerauflösung Scaliert wird.

Jetzt bekomme ich aber auf einem Rechner plötzlich nur leere Seiten! Sowohl das Image, als auch die Scalierung sind OK...

Wer hat eine Idee woran das liegen kann?
AndyB
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1173
Erhaltene Danke: 14


RAD Studio XE2
BeitragVerfasst: Do 20.03.03 17:01 
Na an diesem Satz (StretchDraw ruft StretchBlt auf):
Zitat:
Not all devices support the StretchBlt function. For more information, see the GetDeviceCaps.


Verwende lieber StretchDIBits.

_________________
Ist Zeit wirklich Geld?
Aya
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1964
Erhaltene Danke: 15

MacOSX 10.6.7
Xcode / C++
BeitragVerfasst: Do 20.03.03 17:09 
Hi,

und versuch mal die Farbtiefe vom Bitmap auf 24Bit umzustellen.. :)

ausblenden Quelltext
1:
Bitmap.PixelFormat:=pf24Bit;					


Au'revoir,
Aya~

_________________
Aya
I aim for my endless dreams and I know they will come true!