Home
Top.Mail.Ru Yandeks.Metrika
Forum: "Main";
Current archive: 2002.01.08;
Download: [xml.tar.bz2];

Down

Picture to printer Find similar branches


hunter   (2001-12-17 13:17) [0]

How to make a subject, but so that it is correct to place it on А4 regardless of the size of the picture.
The picture is a list of format A4, but in what resolution it is not known.



Sergey_n   (2001-12-18 00:06) [1]

In Borland C ++ Builder like so
if (PrintDialog1-> Execute ()) {
unsigned int BitmapInfoSize, BitmapImageSize;
long DIBWidth, DIBHeight;
PChar BitmapImage;
Windows :: PBitmapInfo BitmapInfo;
Graphics :: TBitmap * Bitmap;

Printer () -> BeginDoc ();
Bitmap = new Graphics :: TBitmap ();
Bitmap-> Assign (Image3-> Picture-> Bitmap);
GetDIBSizes (Bitmap-> Handle, BitmapInfoSize, BitmapImageSize);
BitmapInfo = (PBitmapInfo) new char [BitmapInfoSize];
BitmapImage = (PChar) new char [BitmapImageSize];
GetDIB (Bitmap-> Handle, 0, BitmapInfo, BitmapImage);
DIBWidth = BitmapInfo-> bmiHeader.biWidth;
DIBHeight = BitmapInfo-> bmiHeader.biHeight;
StretchDIBits (Printer () -> Canvas-> Handle,
0, 0, DIBWidth, DIBHeight,
0, 0, DIBWidth, DIBHeight,
BitmapImage, BitmapInfo,
DIB_RGB_COLORS, SRCCOPY);
delete [] BitmapImage;
delete [] BitmapInfo;
delete Bitmap;

Printer () -> EndDoc ();
}

to alter on Delph I think work will not make.



Pages: 1 whole branch

Forum: "Main";
Current archive: 2002.01.08;
Download: [xml.tar.bz2];

Top









Memory: 0.55 MB
Time: 0.028 c
6-22296
Kolyan
2001-10-11 12:49
2002.01.08
TSocket!


1-22050
Russian
2001-12-18 17:03
2002.01.08
WELL VERY INTERESTING QUESTION :))))


4-22497
Syrius
2001-11-07 09:13
2002.01.08
Delphi 6 and Win32 API


3-21973
Zav
2001-12-06 10:55
2002.01.08
DBNavigator component


1-22167
Type
2001-12-15 20:56
2002.01.08
Such is the problem !!!





afrikaans albanian Arabic armenian azerbaijani basque belarusian bulgarian catalan Chinese (Simplified) Chinese (Traditional) croatian Czech danish Dutch English estonian filipino finnish French
galician georgian German greek haitian Creole hebrew Hindi hungarian icelandic indonesian Irish italian Japanese Korean latvian lithuanian macedonian malay maltese norwegian
persian polish portuguese Romanian russian serbian slovak Slovenian Español swahili Swedish thai turkish Ukrainian urdu vietnamese welsh yiddish bengali bosnian
cebuano Esperanto gujarati hausa hmong igbo javanese kannada khmer lao latin maori marathi mongolian nepali punjabi somali tamil telugu yoruba
zulu
English French German Italian Portuguese Russian Spanish