⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 effbmp.hpp

📁 漏洞扫描系列中HB Network Scanner 测试用练习代码
💻 HPP
字号:
// Borland C++ Builder
// Copyright (c) 1995, 2002 by Borland Software Corporation
// All rights reserved

// (DO NOT EDIT: machine generated header) 'EffBmp.pas' rev: 6.00

#ifndef EffBmpHPP
#define EffBmpHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <GrUtils.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <SysInit.hpp>	// Pascal unit
#include <System.hpp>	// Pascal unit

//-- user supplied -----------------------------------------------------------

namespace Effbmp
{
//-- type declarations -------------------------------------------------------
#pragma pack(push, 1)
struct TFColor
{
	Byte b;
	Byte g;
	Byte r;
} ;
#pragma pack(pop)

typedef TFColor *PFColor;

typedef TFColor TLine[1];

typedef TFColor *PLine;

typedef float __fastcall (*TFilterProc)(float Value);

#pragma option push -b-
enum TGradKind { gdRight, gdLeft, gdTop, gdBottom, gdVCenter, gdHCenter };
#pragma option pop

class DELPHICLASS TEffectBmp;
class PASCALIMPLEMENTATION TEffectBmp : public System::TObject 
{
	typedef System::TObject inherited;
	
private:
	void __fastcall SetPixel(int x, int y, int Clr);
	int __fastcall GetPixel(int x, int y);
	void __fastcall SetLine(int y, void * Line);
	void * __fastcall GetLine(int y);
	
public:
	int Handle;
	int Width;
	int Height;
	int Size;
	void *Bits;
	#pragma pack(push, 1)
	tagBITMAPINFOHEADER BmpHeader;
	#pragma pack(pop)
	
	#pragma pack(push, 1)
	tagBITMAPINFO BmpInfo;
	#pragma pack(pop)
	
	__fastcall TEffectBmp(int cx, int cy);
	__fastcall TEffectBmp(int hBmp);
	__fastcall TEffectBmp(TEffectBmp* hBmp);
	__fastcall virtual ~TEffectBmp(void);
	__property int Pixels[int x][int y] = {read=GetPixel, write=SetPixel};
	__property void * ScanLines[int y] = {read=GetLine, write=SetLine};
	void __fastcall GetScanLine(int y, void * Line);
	void __fastcall Flip(void);
	void __fastcall Flop(void);
	void __fastcall Resize(TEffectBmp* Dst);
	void __fastcall Tile(TEffectBmp* Dst);
	void __fastcall Draw(int hDC, int x, int y);
	void __fastcall Stretch(int hDC, int x, int y, int cx, int cy);
	void __fastcall DrawRect(int hDC, int hx, int hy, int x, int y, int cx, int cy);
	void __fastcall TileDraw(int hDC, int x, int y, int cx, int cy);
	void __fastcall SplitBlur(int Amount);
	void __fastcall Wave(int XDIV, int YDIV, int RatioVal);
	void __fastcall AddColorNoise(int Amount);
	void __fastcall AddMiddleColor(Graphics::TColor Color);
	void __fastcall AddMiddleColorInRect(Graphics::TColor Color, const Types::TRect &Rct);
	void __fastcall Blur(int Amount);
	void __fastcall MaskSplitBlur(TEffectBmp* Msk, int Amount);
	void __fastcall MiddleBMP(TEffectBmp* EB);
	void __fastcall AddGradColor(Graphics::TColor Color, TGradKind Kind);
	void __fastcall AddGradBMP(TEffectBmp* BMP, TGradKind Kind);
	void __fastcall Morph(TEffectBmp* BMP, double Kf);
	void __fastcall MorphRect(TEffectBmp* BMP, double Kf, const Types::TRect &Rct, int StartX, int StartY);
	void __fastcall CopyRect(TEffectBmp* BMP, const Types::TRect &Rct, int StartX, int StartY);
};


typedef TEffectBmp* *PEfBmp;

//-- var, const, procedure ---------------------------------------------------

}	/* namespace Effbmp */
using namespace Effbmp;
#pragma option pop	// -w-
#pragma option pop	// -Vx

#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif	// EffBmp

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -