طباعة صورة موجودة في image
#2
وعليكم السلام ورحمة الله
PHP كود :
uses
  Graphics
, Printers,
  
JPEG; { For JPEG image support }
  
// ...

{ With scaling support }
procedure PrintFile(sImageFileName: string);
var
  
TempImage: TImage;
begin
  
try
    
TempImage := TImage.Create;
    
with TempImage do begin
      Visible 
:= False;
      
Stretch := False;
      
with Picture do begin
        AutoSize 
:= True; { So the component will have the right size }
        
LoadFromFile(sImageFileName);
        
AutoSize := False;
        
with Printer do begin
          BeginDoc
;
          if 
Height > Canvas.Height then
            Height 
:= Canvas.Height;
          if 
Width > Canvas.Width then
            Width 
:= Canvas.Width;
          
EndDoc;
        
end;
      
end;
    
end;
  finally
    
TempImage.Free;
  
end;
end; 
...
اللهم احقن دماء المسلمين، لا تنسوهم بالدعاء...
الرد


الردود في هذا الموضوع
طباعة صورة موجودة في image - بواسطة format82 - 12-04-2010, 07:03 AM
طباعة صورة موجودة في image - بواسطة kachwahed - 12-04-2010, 03:14 PM
طباعة صورة موجودة في image - بواسطة format82 - 13-04-2010, 12:20 PM

التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم