BpcSMScriptLibrary 14: Difference between revisions

From RiskWiki
Created page with "==Graphics manipulation and conversion routines JPG and BMP== Language: Delphi 7 - 2007 <pre> //////////////////////////////////////////////////////////////////////////////..."
 
m 1 revision imported
 
(No difference)

Latest revision as of 06:37, 12 April 2026

Graphics manipulation and conversion routines JPG and BMP

Language: Delphi 7 - 2007


//////////////////////////////////////////////////////////////////////////////////////////
//////// Graphics manipulation routines
//////////////////////////////////////////////////////////////////////////////////////////
//  Author: JG Bishop

interface
uses Classes, Types;

//Convert a JPG file to a BMP file
//Returns the BMP file name
function bpcJPG_To_BPM(const JpgFileName : string) : string; overload
//Convert a JPG file to a BMP stream (replaces original stream)
//Returns the altered input stream
function bpcJPG_To_BPM( MyStream : TStream ) : TStream; overload;
//Convert a BMP file to a JPG file
//1 = low quality , 100 good quality
//Returns the jpg file name
function bpcBmp_To_Jpg (BmpFileName : String; ; Comp : Integer) : string; overload;
//Convert a BMP stream to a JPG stream (replace content of input stream)
//1 = low quality , 100 good quality
//Returns the jpg stream
function bpcBmp_To_Jpg(MyStream : TStream; Comp : Integer) : TStream; overload;

BackLinks