Unit msegraphics
Uses
Description
Overview
Classes, Interfaces, Objects and Records
Functions and Procedures
procedure init; |
procedure deinit; |
procedure initdefaultvalues(var avalue: edgecolorinfoty); |
procedure initdefaultvalues(var avalue: edgecolorpairinfoty); |
procedure drawinfoinit(var info: drawinfoty); |
procedure gdi_lock(); |
procedure gdi_unlock(); |
function gdi_locked(): boolean; |
function gdi_unlockall(): int32; |
procedure gdi_relockall(const acount: int32); |
procedure gdi_call(const func: gdifuncty; var drawinfo: drawinfoty; gdi: pgdifunctionaty = nil); |
function getdefaultgdifuncs: pgdifunctionaty; |
function registergdi(const agdifuncs: pgdifunctionaty): integer; |
function getgdicanvasclass(const agdi: pgdifunctionaty; const akind: bitmapkindty): canvasclassty; |
function creategdicanvas(const agdi: pgdifunctionaty; const akind: bitmapkindty; const user: tobject; const intf: icanvas): tcanvas; |
procedure freefontdata(var drawinfo: drawinfoty); |
procedure allocbuffer(var buffer: bufferty; size: integer); |
procedure extendbuffer(var buffer: bufferty; const extension: integer; var reference: pointer); |
function replacebuffer(var buffer: bufferty; size: integer): pointer; |
procedure freebuffer(var buffer: bufferty); |
procedure gdierrorlocked(error: gdierrorty; const text: msestring = ''); overload; |
procedure gdierrorlocked(error: gdierrorty; sender: tobject; text: msestring = ''); overload; |
function colortorgb(color: colorty): rgbtriplety; |
function colortopixel(color: colorty): pixelty; |
function graytopixel(color: colorty): pixelty; |
function rgbtocolor(const red,green,blue: integer): colorty; |
function blendcolor(const weight: real; const a,b: colorty): colorty; |
function opacitycolor(const opacity: real): colorty; |
function invertcolor(const color: colorty): colorty; |
procedure setcolormapvalue(index: colorty; const red,green,blue: integer); overload; |
procedure setcolormapvalue(const index: colorty; const acolor: colorty); overload; |
function isvalidmapcolor(index: colorty): boolean; |
function transparencytoopacity(const trans: colorty): colorty; |
procedure drawdottedlinesegments(const acanvas: tcanvas; const lines: segmentarty; const colorline: colorty); |
procedure allocimage(out image: imagety; const asize: sizety; const akind: bitmapkindty); |
procedure freeimage(var image: imagety); |
procedure freeimage(var image: maskedimagety); |
procedure zeropad(var image: imagety); |
procedure checkimagebgr(var aimage: imagety; const bgr: boolean); |
procedure movealignment(const source: alignmentsty; var dest: alignmentsty); |
Types
Constants
Variables
defaultframecolors: framecolorinfoty =
(edges:(light: (color: cl_light; effectcolor: cl_highlight; effectwidth: 1);
shadow: (color: cl_shadow; effectcolor: cl_dkshadow; effectwidth: 1);
);
frame: cl_black;
hiddenedges: []
); |
defaulteditfontcolors: editfontcolorinfoty = (
text: cl_text;
textbackground: cl_transparent;
selectedtext: cl_selectedtext;
selectedtextbackground: cl_selectedtextbackground;
); |
flushgdi: boolean; |
Description
Functions and Procedures
procedure init; |
procedure deinit; |
procedure initdefaultvalues(var avalue: edgecolorinfoty); |
procedure initdefaultvalues(var avalue: edgecolorpairinfoty); |
procedure drawinfoinit(var info: drawinfoty); |
procedure gdi_lock(); |
procedure gdi_unlock(); |
function gdi_locked(): boolean; |
function gdi_unlockall(): int32; |
procedure gdi_relockall(const acount: int32); |
procedure gdi_call(const func: gdifuncty; var drawinfo: drawinfoty; gdi: pgdifunctionaty = nil); |
function getdefaultgdifuncs: pgdifunctionaty; |
function registergdi(const agdifuncs: pgdifunctionaty): integer; |
function getgdicanvasclass(const agdi: pgdifunctionaty; const akind: bitmapkindty): canvasclassty; |
function creategdicanvas(const agdi: pgdifunctionaty; const akind: bitmapkindty; const user: tobject; const intf: icanvas): tcanvas; |
procedure freefontdata(var drawinfo: drawinfoty); |
procedure allocbuffer(var buffer: bufferty; size: integer); |
procedure extendbuffer(var buffer: bufferty; const extension: integer; var reference: pointer); |
function replacebuffer(var buffer: bufferty; size: integer): pointer; |
procedure freebuffer(var buffer: bufferty); |
procedure gdierrorlocked(error: gdierrorty; const text: msestring = ''); overload; |
procedure gdierrorlocked(error: gdierrorty; sender: tobject; text: msestring = ''); overload; |
function colortorgb(color: colorty): rgbtriplety; |
function colortopixel(color: colorty): pixelty; |
function graytopixel(color: colorty): pixelty; |
function rgbtocolor(const red,green,blue: integer): colorty; |
function blendcolor(const weight: real; const a,b: colorty): colorty; |
function opacitycolor(const opacity: real): colorty; |
function invertcolor(const color: colorty): colorty; |
procedure setcolormapvalue(index: colorty; const red,green,blue: integer); overload; |
procedure setcolormapvalue(const index: colorty; const acolor: colorty); overload; |
function isvalidmapcolor(index: colorty): boolean; |
function transparencytoopacity(const trans: colorty): colorty; |
procedure drawdottedlinesegments(const acanvas: tcanvas; const lines: segmentarty; const colorline: colorty); |
procedure allocimage(out image: imagety; const asize: sizety; const akind: bitmapkindty); |
procedure freeimage(var image: imagety); |
procedure freeimage(var image: maskedimagety); |
procedure zeropad(var image: imagety); |
procedure checkimagebgr(var aimage: imagety; const bgr: boolean); |
procedure movealignment(const source: alignmentsty; var dest: alignmentsty); |
Types
gckindty = (...); |
Values
|
drawingflagty = (...); |
Values
|
drawingflagsty = set of drawingflagty; |
capstylety = (...); |
Values
|
joinstylety = (...); |
Values
|
dashesstringty = string[8]; |
fontoptionty = (...); |
Values
|
fontoptionsty = set of fontoptionty; |
canvasstatety = (...); |
Values
|
canvasstatesty = set of canvasstatety; |
pgdifunctionaty = ˆgdifunctionaty; |
fontdatapty = array[0..15] of pointer; |
pfontdataty = ˆfontdataty; |
pfontmetricsty = ˆfontmetricsty; |
rasteropty = (...); |
Values
|
fontchangedeventty = procedure(sender: tfont; changed: canvasstatesty) of object; |
fontstatety = (...); |
Values
|
fontstatesty = set of fontstatety; |
fontnumty = longword; |
fontaliasmodety = (...); |
Values
|
fontlocalpropty = (...); |
Values
|
fontlocalpropsty = set of fontlocalpropty; |
pfontinfoty = ˆfontinfoty; |
bitmapkindty = (...); |
Values
|
pimagety = ˆimagety; |
canvasclassty = class of tcanvas; |
gcpty = array[0..63] of pointer; |
pgcty = ˆgcty; |
pdrawinfoty = ˆdrawinfoty; |
rectsty = array[0..bigint div sizeof(rectty)] of rectty; |
prectsty = ˆrectsty; |
gcvaluemaskty = (...); |
Values
|
gcvaluemasksty = set of gcvaluemaskty; |
canvasoptionty = (...); |
Values
|
canvasoptionsty = set of canvasoptionty; |
pgcvaluesty = ˆgcvaluesty; |
getfontfuncty = function (var drawinfo: drawinfoty): boolean of object; |
pfont = ˆtfont; |
fontarty = array of tfont; |
parentfontclassty = class of tparentfont; |
gdifunctionty = procedure(var drawinfo: drawinfoty); |
gdifuncty = (...); |
Values
|
gdifunctionaty = array[gdifuncty] of gdifunctionty; |
canvasvaluespoty = ˆcanvasvaluesty; |
canvasvaluesarty = array of canvasvaluesty; |
edgeinfoty = (...); |
Values
|
edgeinfosty = set of edgeinfoty; |
gdiintffuncty = procedure (func: gdifuncty; var drawinfo: drawinfoty); |
canvasarty = array of tcanvas; |
pixmapstatety = (...); |
Values
|
pixmapstatesty = set of pixmapstatety; |
Constants
linewidthshift = 16; |
linewidthroundvalue = $8000; |
fontsizeshift = 16; |
fontsizeroundvalue = $8000; |
defaultfontalias = 'stf_default'; |
invalidgchandle = ptruint(-1); |
fillmodeinfoflags = [df_opaque,df_monochrome,df_brush]; |
da_dot = dashesstringty(#1#1); |
da_dash = dashesstringty(#3#3); |
da_dashdot = dashesstringty(#3#1#1#1); |
fontpitchmask = [foo_fixed,foo_proportional]; |
fontfamilymask = [foo_helvetica,foo_roman,foo_script,foo_decorative]; |
fontantialiasedmask = [foo_antialiased,foo_antialiased2,foo_nonantialiased]; |
fontaliasoptionchars : array[fontoptionty] of char =
('p','P','H','R','S','D','A','B','a'); |
linecanvasstates = [cs_dashes,cs_linewidth,cs_capstyle,cs_joinstyle]; |
fontstylehandlemask = 3; |
fontstylesmamask: fontstylesty =
[fs_bold,fs_italic,fs_underline,fs_strikeout,fs_selected]; |
nullgc: gcty = (handle: 0); |
Variables
defaultframecolors: framecolorinfoty =
(edges:(light: (color: cl_light; effectcolor: cl_highlight; effectwidth: 1);
shadow: (color: cl_shadow; effectcolor: cl_dkshadow; effectwidth: 1);
);
frame: cl_black;
hiddenedges: []
); |
defaulteditfontcolors: editfontcolorinfoty = (
text: cl_text;
textbackground: cl_transparent;
selectedtext: cl_selectedtext;
selectedtextbackground: cl_selectedtextbackground;
); |
flushgdi: boolean; |
Generated by PasDoc 0.16.0.