e-prime语句资料

上传人:w****i 文档编号:102965142 上传时间:2019-10-05 格式:DOC 页数:12 大小:74KB
返回 下载 相关 举报
e-prime语句资料_第1页
第1页 / 共12页
e-prime语句资料_第2页
第2页 / 共12页
e-prime语句资料_第3页
第3页 / 共12页
e-prime语句资料_第4页
第4页 / 共12页
e-prime语句资料_第5页
第5页 / 共12页
点击查看更多>>
资源描述

《e-prime语句资料》由会员分享,可在线阅读,更多相关《e-prime语句资料(12页珍藏版)》请在金锄头文库上搜索。

1、1 DisplayDevice Object (topic)DisplayDevice is an abstract object derived from Device. DisplayDevice adds functionality related to the configuration of the display, such as the refresh rate and resolution.PropertiesCalculatedRefreshDuration IDSegmentCopyVerticalOffset VerticalBlankSimulatedCount Cal

2、culatedRefreshRate NameTagVerticalBlankSimulationEnabled ColorDepth RefreshDurationStats VerticalBlankDetectedCount XRes EchoClients SegmentCopyMaxHeight VerticalBlankDurationStats YRes MethodsCalcActualRefreshRate Close Open Suspend CalculateRefreshRate CreateCanvas PaletteWaitForVerticalBlankCanva

3、s GetStateResumeSee AlsoCanvas Object (topic)Device Object (topic) Palette Object (topic)2 DisplayDevice.CreateCanvas (method)SyntaxSet CanvasName = Display.CreateCanvasDescriptionCreates the current canvas, CanvasName, as an offscreen canvasCommentsThe offscreen canvas will remain offscreen until i

4、t is set as the current display canvasPortions of the offscreen canvas can be copied to the current display canvas by using the Canvas.Copy methodExampleThis example loads the BlueCar.bitmap onto the offscreen canvas, then copies it to the display canvas.Declare two canvases, one off-screen, and one

5、 as the active displayDim cnvs As CanvasDim offScreenCnvs As Canvasuse the Canvas method to create an active display canvasSet cnvs = Display.Canvasuse the CreateCanvas to create an off-screen canvasSet offScreenCnvs = Display.CreateCanvasDeclare two rectangles to define the source and destination a

6、reasDim src As RectDim dest As Rectdefine source rect as full screensrc.Left = 0src.Top = 0src.Right = Display.XRessrc.Bottom = Display.YResdefine destination rect as top left quadrantdest.Left = 0dest.Top = 0dest.Right = Display.XRes/2dest.Bottom = Display.YRes/2cnvs.TextColor = CColor (blue)cnvs.T

7、ext Display.XRes/2, Display.YRes/2, Loading image.Sleep(3000)Load the image to off screen canvasoffScreenCnvs.FillColor = CColor(Blue)offScreenCnvs.ClearoffscreenCnvs.LoadImage bluecar.bmpCopy image to display canvascnvs.Text Display.XRes/2, Display.YRes/2, Copying vs.Copy offScreenCnvs, src, destSl

8、eep 3000Note: To run this example with E-BasicExample.es, copy the script aboveand paste it into the Setup InLine object. Also, be sure to copy theBlueCar bitmap from PictureRT folder to the My Experiments/Tutorialsfolder where E-BasicExample.es is located.See Also DisplayDevice Object (topic)3 Disp

9、layDevice.Canvas (method)SyntaxSet CanvasName = Display.CanvasDescriptionSets a reference to create the canvas, CanvasName, as the current, onscreen canvasCommentsAll changes made to CanvasName will be immediately visible when CanvasName is the current, onscreen canvasExampleThis example draws a sin

10、gle red line on the onscreen canvas.Create a CanvasDim cnvs As CanvasMake cnvs the current, onscreen canvasSet cnvs = Display.CanvasSet the width and color of the pencnvs.PenWidth = 5cnvs.PenColor = CColor(255,0,0)Draw a Line in redcnvs.Line 100, 100, 200, 100Sleep 1000Note: To run this example with

11、 E-BasicExample.es, copy the script aboveand paste it into the Before InLine object.See Also Canvas Object (topic) DisplayDevice Object (topic)4 Canvas Object (topic)The Canvas Object abstracts the programming interface to a particular canvas.PropertiesBackStyle FontName IDROPMode TextColor FillColo

12、r FontSize NameSourceColorKeyFontBold FontStrikeout PenColor TagFontItalic FontUnderline PenWidthTextBackColor MethodsArc ClearLineTo Pie SaveImage CalculateTextSize CopyLoadImage PolygonSetPixel Chord GetPixelMove ToRectangle Text Circle LineOvalRoundedRectangleSee Also DisplayDevice Object (topic)

13、5 RteObject (topic)The RteObject is an abstract object and is the root of all other objects.PropertiesName IDTag See Also Clock Object (topic) InputMask Object (topic) Debug Object (topic) Order Object (topic) PRNG Object (topic) Palette Object (topic) Rte (topic) ResponseData Object (topic) Canvas

14、Object (topic) RteAuditObject (topic) CellSpec Object (topic) RteCollection Object (topic) Context Object (topic) SlideState Object (topic) DataFile Object SlideStim Object (topic) Deletion Object (topic) SoundBuffer Object (topic) Device Object (topic) Summation Object (topic) DeviceManager Object

15、(topic) Trigger Object (topic) EchoClient Object (topic)6 Clock Object (topic)The Clock Object abstracts the current real-time clock that is in use. The Clock Object is run-time only.PropertiesIDNameScale Tag MethodsRead Read100thMillisec Microsec ResetScale Read10thMillisecRead1000thMillisec ReadMillisec See Also

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 高等教育 > 大学课件

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号