?? skingraphic.pas
字號(hào):
unit SkinGraphic;
interface
uses Windows,SysUtils,Classes,Graphics,Jpeg;
type
TSkinGraphic = Class (TJPEGImage)
private
protected
public
procedure LoadFromFile(const FileName: string);override;
end;
implementation
var s,s1:string;
temp:Tbitmap;
begin
s1:= ExtractFileExt(filename);
s:= FileName;
s:= StringReplace(s,s1,'.jpg',[rfIgnoreCase]);
if fileexists(s) then
inherited loadfromfile(s)
else begin
temp:=Tbitmap.create;
temp.Width:=150;
temp.height:=25;
temp.Canvas.TextOut(1,1,'No Preview Image Found');
assign(temp);
temp.free;
end;
end;
initialization
TPicture.RegisterFileFormat('skn','Skin File', TSkinGraphic);
finalization
TPicture.UnregisterGraphicClass(TSkinGraphic);
end.
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -