Coder Social home page Coder Social logo

image's Introduction

image

控制台显示图片 Ver 3.5 by Byaidu

3.5版本的完整帮助文档在www.bathome.net/viewthread.php?tid=47990&page=1&extra=#pid208060

以下为没有更新的3.1版本帮助文档

命令                            作用                                                  
help显示帮助
load file [tag]                申请一块画布tag,并加载图元到画布tag                  
unload tag删除画布tag
save file tag将画布tag的内容存储到file中
target tag切换当前绘图目标为画布tag
buffer tag申请一块画布tag
resize tag w h将画布tag缩放到w*h的大小,如果目标cmd,则会同时将控制台设置为最适合绘图的状态
cls清空画布cmd的内容
rotate tag degree将画布tag顺时针旋转degree度
draw tag x y [trans | alpha]将画布tag绘制到当前绘图目标的x,y位置上
info tag将画布tag的宽和高存储到变量image
export将画布cmd的句柄存储到变量image
import handle tag通过句柄将另一个控制台的画布cmd映射到此控制台的画布tag
getpix tag x y将画布tag上x,y位置的rgb值存储到变量image
setpix tag x y r g b设置画布tag上x,y位置的rgb值
sleep time延时time毫秒
list file执行image指令脚本file
debug以图形形式输出图元索引树,用于查看画布cmd上的各个图元
font r g b w h设置当前绘图目标所用字体的rgb值和大小
text string在当前绘图目标的x,y的位置上输出字符串string
mouse time [region1] [region2] …捕获鼠标坐标及事件,坐标以像素为单位,时间以毫秒为单位
若time>=0,当发生点击事件或时间超过限制时会将鼠标坐标x,y以及坐标在画布cmd上对应的图元tag存储到变量image,并将图元tag单独再存储到变量errorlevel
若time<0,不设置时间限制
若设置了region,那么返回的的就不是图元tag而是region序号,如果鼠标坐标不在任何一个指定的region中,则返回序号0
region应以如下的形式给出:x1,y1,x2,y2

https://images2018.cnblogs.com/blog/1123683/201802/1123683-20180223134856925-1663767861.jpg

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.