亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? gifimage.pas

?? 是Delphi的界面控件
?? PAS
?? 第 1 頁(yè) / 共 5 頁(yè)
字號(hào):
    function InternalPaint(Painter: PGIFPainter; ACanvas: TCanvas; const Rect: TRect; Options: TGIFDrawOptions): TGIFPainter;
    procedure Draw(ACanvas: TCanvas; const Rect: TRect); override;
    function Equals(Graphic: TGraphic): Boolean; override;
    function GetPalette: HPALETTE; {$IFDEF VER9x} virtual; {$ELSE} override; {$ENDIF}
    procedure SetPalette(Value: HPalette); {$IFDEF VER9x} virtual; {$ELSE} override; {$ENDIF}
    function GetEmpty: Boolean; override;
    procedure WriteData(Stream: TStream); override;
    function GetIsTransparent: Boolean;
    function GetVersion: TGIFVersion;
    function GetColorResolution: integer;
    function GetBitsPerPixel: integer;
    function GetBackgroundColorIndex: BYTE;
    procedure SetBackgroundColorIndex(const Value: BYTE);
    function GetBackgroundColor: TColor;
    procedure SetBackgroundColor(const Value: TColor);
    function GetAspectRatio: BYTE;
    procedure SetAspectRatio(const Value: BYTE);
    procedure SetDrawOptions(Value: TGIFDrawOptions);
    procedure SetAnimationSpeed(Value: integer);
    procedure SetReductionBits(Value: integer);
    procedure NewImage;
    function GetBitmap: TBitmap;
    function NewBitmap: TBitmap;
    procedure FreeBitmap;
    function GetColorMap: TGIFColorMap;
    function GetDoDither: boolean;
    property DrawPainter: TGIFPainter read FDrawPainter; // Extremely volatile
    property DoDither: boolean read GetDoDither;
{$IFDEF VER9x}
    procedure Progress(Sender: TObject; Stage: TProgressStage;
      PercentDone: Byte;  RedrawNow: Boolean; const R: TRect; const Msg: string); dynamic;
{$ENDIF}
  public
    constructor Create; override;
    destructor Destroy; override;
    procedure SaveToStream(Stream: TStream); override;
    procedure LoadFromStream(Stream: TStream); override;
    procedure LoadFromResourceName(Instance: THandle; const ResName: String);  // 2002.07.07
    function Add(Source: TPersistent): integer;
    procedure Pack;
    procedure OptimizeColorMap;
    procedure Optimize(Options: TGIFOptimizeOptions;
      ColorReduction: TColorReduction; DitherMode: TDitherMode;
      ReductionBits: integer);
    procedure Clear;
    procedure StopDraw;
    function Paint(ACanvas: TCanvas; const Rect: TRect; Options: TGIFDrawOptions): TGIFPainter;
    procedure PaintStart;
    procedure PaintPause;
    procedure PaintStop;
    procedure PaintResume;
    procedure PaintRestart;
    procedure Warning(Sender: TObject; Severity: TGIFSeverity; Message: string); virtual;
    procedure Assign(Source: TPersistent); override;
    procedure LoadFromClipboardFormat(AFormat: Word; AData: THandle;
      APalette: HPALETTE); override;
    procedure SaveToClipboardFormat(var AFormat: Word; var AData: THandle;
      var APalette: HPALETTE); override;
    property GlobalColorMap: TGIFColorMap read GetColorMap;
    property Version: TGIFVersion read GetVersion;
    property Images: TGIFImageList read FImages;
    property ColorResolution: integer read GetColorResolution;
    property BitsPerPixel: integer read GetBitsPerPixel;
    property BackgroundColorIndex: BYTE read GetBackgroundColorIndex write SetBackgroundColorIndex;
    property BackgroundColor: TColor read GetBackgroundColor write SetBackgroundColor;
    property AspectRatio: BYTE read GetAspectRatio write SetAspectRatio;
    property Header: TGIFHeader read FHeader; // ***OBSOLETE***
    property IsTransparent: boolean read GetIsTransparent;
    property DrawOptions: TGIFDrawOptions read FDrawOptions write SetDrawOptions;
    property DrawBackgroundColor: TColor read FDrawBackgroundColor write FDrawBackgroundColor;
    property ColorReduction: TColorReduction read FColorReduction write FColorReduction;
    property ReductionBits: integer read FReductionBits write SetReductionBits;
    property DitherMode: TDitherMode read FDitherMode write FDitherMode;
    property Compression: TGIFCompression read FCompression write FCompression;
    property AnimationSpeed: integer read FAnimationSpeed write SetAnimationSpeed;
    property Animate: Boolean read GetAnimate write SetAnimate;  // 2002.07.07
    property ForceFrame: Integer read FForceFrame write SetForceFrame;  // 2004.03.09
    property Painters: TThreadList read FPainters;
    property ThreadPriority: TThreadPriority read FThreadPriority write FThreadPriority;
    property Bitmap: TBitmap read GetBitmap; // Volatile - beware!
    property OnWarning: TGIFWarning read FOnWarning write FOnWarning;
    property OnStartPaint: TNotifyEvent read FOnStartPaint write FOnStartPaint;
    property OnPaint: TNotifyEvent read FOnPaint write FOnPaint;
    property OnAfterPaint: TNotifyEvent read FOnAfterPaint write FOnAfterPaint;
    property OnLoop: TNotifyEvent read FOnLoop write FOnLoop;
    property OnEndPaint	: TNotifyEvent read FOnEndPaint	 write FOnEndPaint	;
{$IFDEF VER9x}
    property Palette: HPALETTE read GetPalette write SetPalette;
    property PaletteModified: Boolean read FPaletteModified write FPaletteModified;
    property OnProgress: TProgressEvent read FOnProgress write FOnProgress;
{$ENDIF}
  end;

////////////////////////////////////////////////////////////////////////////////
//
//                      Utility routines
//
////////////////////////////////////////////////////////////////////////////////
  // WebPalette creates a 216 color uniform palette a.k.a. the Netscape Palette
  function WebPalette: HPalette;

  // ReduceColors
  // Map colors in a bitmap to their nearest representation in a palette using
  // the methods specified by the ColorReduction and DitherMode parameters.
  // The ReductionBits parameter specifies the desired number of colors (bits
  // per pixel) when the reduction method is rmQuantize. The CustomPalette
  // specifies the palette when the rmPalette reduction method is used.
  function ReduceColors(Bitmap: TBitmap; ColorReduction: TColorReduction;
    DitherMode: TDitherMode; ReductionBits: integer; CustomPalette: hPalette): TBitmap;

  // CreateOptimizedPaletteFromManyBitmaps
  //: Performs Color Quantization on multiple bitmaps.
  // The Bitmaps parameter is a list of bitmaps. Returns an optimized palette.
  function CreateOptimizedPaletteFromManyBitmaps(Bitmaps: TList; Colors, ColorBits: integer;
    Windows: boolean): hPalette;

{$IFDEF VER9x}
  // From Delphi 3 graphics.pas
type
  TPixelFormat = (pfDevice, pf1bit, pf4bit, pf8bit, pf15bit, pf16bit, pf24bit, pf32bit, pfCustom);
{$ENDIF}

  procedure InternalGetDIBSizes(Bitmap: HBITMAP; var InfoHeaderSize: Integer;
    var ImageSize: longInt; PixelFormat: TPixelFormat);
  function InternalGetDIB(Bitmap: HBITMAP; Palette: HPALETTE;
   var BitmapInfo; var Bits; PixelFormat: TPixelFormat): Boolean;

////////////////////////////////////////////////////////////////////////////////
//
//                      Global variables
//
////////////////////////////////////////////////////////////////////////////////
// GIF Clipboard format identifier for use by LoadFromClipboardFormat and
// SaveToClipboardFormat.
// Set in Initialization section.
var
  CF_GIF: WORD;

////////////////////////////////////////////////////////////////////////////////
//
//                      Library defaults
//
////////////////////////////////////////////////////////////////////////////////
var
  //: Default options for TGIFImage.DrawOptions.
  GIFImageDefaultDrawOptions : TGIFDrawOptions =
    [goAsync, goLoop, goTransparent, goAnimate, goDither, goAutoDither
{$IFDEF STRICT_MOZILLA}
     ,goClearOnLoop
{$ENDIF}
    ];

  // WARNING! Do not use goAsync and goDirectDraw unless you have absolute
  // control of the destination canvas.
  // TGIFPainter will continue to write on the canvas even after the canvas has
  // been deleted, unless *you* prevent it.
  // The goValidateCanvas option will fix this problem if it is ever implemented.

  //: Default color reduction methods for bitmap import.
  // These are the fastest settings, but also the ones that gives the
  // worst result (in most cases).
  GIFImageDefaultColorReduction: TColorReduction = rmNetscape;
  GIFImageDefaultColorReductionBits: integer = 8; // Range 3 - 8
  GIFImageDefaultDitherMode: TDitherMode = dmNearest;

  //: Default encoder compression method.
  GIFImageDefaultCompression: TGIFCompression = gcLZW;

  //: Default painter thread priority
  GIFImageDefaultThreadPriority: TThreadPriority = tpNormal;

  //: Default animation speed in % of normal speed (range 0 - 1000)
  GIFImageDefaultAnimationSpeed: integer = 100;

  // DoAutoDither is set to True in the initializaion section if the desktop DC
  // supports 256 colors or less.
  // It can be modified in your application to disable/enable Auto Dithering
  DoAutoDither: boolean = False;

  // Palette is set to True in the initialization section if the desktop DC
  // supports 256 colors or less.
  // You should NOT modify it.
  PaletteDevice: boolean = False;

  // Set GIFImageRenderOnLoad to True to render (convert to bitmap) the
  // GIF frames as they are loaded instead of rendering them on-demand.
  // This might increase resource consumption and will increase load time,
  // but will cause animated GIFs to display more smoothly.
  GIFImageRenderOnLoad: boolean = False;

  // If GIFImageOptimizeOnStream is true, the GIF will be optimized
  // before it is streamed to the DFM file.
  // This will not affect TGIFImage.SaveToStream or SaveToFile.
  GIFImageOptimizeOnStream: boolean = False;

////////////////////////////////////////////////////////////////////////////////
//
//                      Design Time support
//
////////////////////////////////////////////////////////////////////////////////
// Dummy component registration for design time support of GIFs in TImage
procedure Register;

////////////////////////////////////////////////////////////////////////////////
//
//                      Error messages
//
////////////////////////////////////////////////////////////////////////////////
{$ifndef VER9x}
resourcestring
{$else}
const
{$endif}
  // GIF Error messages
  sOutOfData		= 'Premature end of data';
  sTooManyColors	= 'Color table overflow';
  sBadColorIndex	= 'Invalid color index';
  sBadVersion		= 'Unsupported GIF version';
  sBadSignature		= 'Invalid GIF signature';
  sScreenBadColorSize	= 'Invalid number of colors specified in Screen Descriptor';
  sImageBadColorSize	= 'Invalid number of colors specified in Image Descriptor';
  sUnknownExtension	= 'Unknown extension type';
  sBadExtensionLabel	= 'Invalid extension introducer';
  sOutOfMemDIB		= 'Failed to allocate memory for GIF DIB';
  sDIBCreate		= 'Failed to create DIB from Bitmap';
  sDecodeTooFewBits	= 'Decoder bit buffer under-run';
  sDecodeCircular	= 'Circular decoder table entry';
  sBadTrailer		= 'Invalid Image trailer';
  sBadExtensionInstance	= 'Internal error: Extension Instance does not match Extension Label';
  sBadBlockSize		= 'Unsupported Application Extension block size';
  sBadBlock		= 'Unknown GIF block type';
  sUnsupportedClass	= 'Object type not supported for operation';
  sInvalidData		= 'Invalid GIF data';
  sBadHeight		= 'Image height too small for contained frames';
  sBadWidth		= 'Image width too small for contained frames';
{$IFNDEF REGISTER_TGIFIMAGE}
  sGIFToClipboard	= 'Clipboard operations not supported for GIF objects';
{$ELSE}
  sFailedPaste		= 'Failed to store GIF on clipboard';
{$IFDEF VER9x}
  sUnknownClipboardFormat= 'Unsupported clipboard format';
{$ENDIF}
{$ENDIF}
  sScreenSizeExceeded	= 'Image exceeds Logical Screen size';
  sNoColorTable		= 'No global or local color table defined';
  sBadPixelCoordinates	= 'Invalid pixel coordinates';
  sUnsupportedBitmap	= 'Unsupported bitmap format';
  sInvalidPixelFormat	= 'Unsupported PixelFormat';
  sBadDimension		= 'Invalid image dimensions';
  sNoDIB		= 'Image has no DIB';
  sInvalidStream	= 'Invalid stream operation';
  sInvalidColor		= 'Color not in color table';
  sInvalidBitSize	= 'Invalid Bits Per Pixel value';
  sEmptyColorMap	= 'Color table is empty';
  sEmptyImage		= 'Image is empty';
  sInvalidBitmapList	= 'Invalid bitmap list';
  sInvalidReduction	= 'Invalid reduction method';
{$IFDEF VER9x}
  // From Delphi 3 consts.pas
  SOutOfResources	= 'Out of system resources';
  SInvalidBitmap	= 'Bitmap image is not valid';
  SScanLine		= 'Scan line index out of range';
{$ENDIF}

////////////////////////////////////////////////////////////////////////////////
//
//                      Misc texts
//
////////////////////////////////////////////////////////////////////////////////
  // File filter name
  sGIFImageFile		= 'GIF Image';

  // Progress messages
  sProgressLoading	= 'Loading...';
  sProgressSaving	= 'Saving...';
  sProgressConverting	= 'Converting...';
  sProgressRendering	= 'Rendering...';
  sProgressCopying	= 'Copying...';
  sProgressOptimizing	= 'Optimizing...';


////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
//
//			Implementation
//
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
implementation

{ This makes me long for the C preprocessor... }
{$ifdef DEBUG}
  {$ifdef DEBUG_COMPRESSPERFORMANCE}
    {$define DEBUG_PERFORMANCE}
  {$else}
    {$ifdef DEBUG_DECOMPRESSPERFORMANCE}
      {$define DEBUG_PERFORMANCE}
    {$else}
      {$ifdef DEBUG_DITHERPERFORMANCE}
        {$define DEBUG_PERFORMANCE}
      {$else}
        {$ifdef DEBUG_DITHERPER

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
蜜桃在线一区二区三区| 欧美日韩一级大片网址| 亚洲欧美日韩在线播放| 欧美久久一二三四区| 国产在线播放一区| 一区二区三区国产精华| 久久久久国产一区二区三区四区| 91视频免费播放| 久久精品国产久精国产爱| 国产精品久久久久婷婷二区次| 日韩一区二区三区精品视频| 色综合久久综合网欧美综合网| 日韩一区二区三区精品视频| 国产精品动漫网站| 欧美午夜精品久久久久久孕妇| 17c精品麻豆一区二区免费| 国产精品一品视频| 欧美一区二区三区不卡| 狠狠狠色丁香婷婷综合激情| 欧美日韩国产电影| 天天色天天操综合| 亚洲精品水蜜桃| 色综合天天做天天爱| 久久国产精品99久久久久久老狼| 一二三区精品福利视频| 国产精品久久毛片a| 国产日韩欧美高清| 精品伦理精品一区| 精品国产免费一区二区三区香蕉| 欧美精品久久99久久在免费线 | 亚洲欧美日韩国产另类专区| 337p日本欧洲亚洲大胆色噜噜| 91成人网在线| 91社区在线播放| 北岛玲一区二区三区四区| 国产精品一区二区视频| 国产自产2019最新不卡| 激情伊人五月天久久综合| 五月激情综合网| 天天亚洲美女在线视频| 天天综合日日夜夜精品| 日韩精品电影在线观看| 天天综合天天综合色| 午夜精品福利久久久| 亚洲国产一区二区三区青草影视 | 午夜精品一区二区三区三上悠亚| 亚洲伦理在线免费看| 亚洲一区二区三区激情| 午夜精品在线看| 美女国产一区二区| 狠狠色综合播放一区二区| 国产乱子伦视频一区二区三区| 国产成人在线视频网址| 大陆成人av片| 欧美综合亚洲图片综合区| 欧美日韩免费观看一区二区三区| 欧美午夜精品一区二区蜜桃| 欧美精品乱码久久久久久按摩| 欧美一区二区视频在线观看2020| 精品区一区二区| 日韩欧美在线123| 欧美三级电影网站| 欧美精品在线一区二区三区| 国产福利一区在线| 精品一区二区免费看| 极品尤物av久久免费看| 亚洲欧洲三级电影| 亚洲免费在线观看视频| 国产精品视频线看| 国产精品丝袜黑色高跟| 欧美a一区二区| 色综合久久久久久久久久久| 97se亚洲国产综合在线| 欧美三级在线播放| www成人在线观看| 成人免费一区二区三区在线观看| 一区二区三区四区乱视频| 奇米影视7777精品一区二区| 国产精品白丝jk黑袜喷水| 色综合色综合色综合| 欧美mv和日韩mv的网站| 亚洲人成亚洲人成在线观看图片| 亚洲一区二区黄色| 黑人巨大精品欧美一区| 91论坛在线播放| 欧美va亚洲va| 欧美日韩aaa| 亚洲精品一区二区三区99| 亚洲国产一区视频| 国产一区二区不卡| 91精品国产入口| 有码一区二区三区| 99久久精品国产毛片| 欧美猛男超大videosgay| 欧美日韩另类一区| 精品国产91九色蝌蚪| 亚洲男人天堂av网| 国产一区二区伦理片| 色欧美片视频在线观看| 国产午夜精品久久| 中文字幕第一区二区| 亚洲三级在线免费| 亚洲国产精品一区二区尤物区| 国产一区欧美一区| 欧美美女一区二区| 亚洲一区二区美女| 日本va欧美va精品发布| 久久激五月天综合精品| 成人小视频免费在线观看| 91黄色激情网站| 91精品国产福利| 欧美v日韩v国产v| 亚洲激情在线激情| 国产乱色国产精品免费视频| 91精品国产品国语在线不卡| 亚洲黄色录像片| 精品视频一区三区九区| 一区二区在线电影| 色综合网站在线| 亚洲成a人v欧美综合天堂| 99精品偷自拍| 中文字幕一区二区三区av| 欧美日韩不卡一区二区| 欧美色网一区二区| 国产成人精品免费一区二区| 日韩欧美一区二区视频| 日本麻豆一区二区三区视频| 在线免费观看不卡av| 亚洲免费观看在线观看| 99久久综合国产精品| 国产精品久久久久久久久免费桃花| 国产精品一区二区在线看| 久久久亚洲欧洲日产国码αv| 蜜臀av性久久久久蜜臀av麻豆| 这里只有精品电影| 蜜桃一区二区三区在线| 日韩欧美综合在线| 精品一区二区av| 久久久久国产精品免费免费搜索| 精品一区二区三区免费观看| 欧美va亚洲va| 国产电影一区二区三区| 国产精品美女久久久久久久久| 不卡av在线网| 一区二区三区四区亚洲| 欧美私人免费视频| 天天综合网天天综合色| 精品嫩草影院久久| 丁香激情综合国产| 亚洲精品欧美专区| 欧美另类高清zo欧美| 日本欧美在线看| 久久久久久久久久美女| 成人av免费在线| 亚洲综合丁香婷婷六月香| 欧美日韩和欧美的一区二区| 日韩成人一级片| 久久精品一级爱片| 91香蕉视频黄| 日日夜夜精品视频天天综合网| 日韩欧美国产高清| 成人精品国产免费网站| 亚洲乱码国产乱码精品精可以看| 欧美视频中文字幕| 激情欧美一区二区| 亚洲欧美日韩综合aⅴ视频| 欧美人动与zoxxxx乱| 国产一区二区三区在线观看免费视频| 亚洲国产精品ⅴa在线观看| 91行情网站电视在线观看高清版| 天天免费综合色| 欧美激情中文字幕| 在线观看一区日韩| 狠狠色丁香婷婷综合| 国产精品对白交换视频| 91精品国产综合久久香蕉麻豆| 国产精品91xxx| 亚洲一二三专区| 国产色产综合产在线视频| 91国偷自产一区二区使用方法| 美女高潮久久久| 亚洲乱码精品一二三四区日韩在线 | 91亚洲精品久久久蜜桃网站 | 色偷偷久久人人79超碰人人澡| 日本在线播放一区二区三区| 欧美激情一区二区三区全黄| 欧美日韩五月天| 成人三级伦理片| 美国精品在线观看| 亚洲一线二线三线视频| 国产婷婷一区二区| 6080午夜不卡| 色综合久久久久综合99| 国产一区欧美日韩| 日韩**一区毛片| 亚洲精品成人在线| 国产精品美女久久福利网站| 日韩欧美久久一区| 欧美日韩高清影院| 在线日韩av片|