首页 \ 问答 \ linux运维工程师都需要哪些技能

linux运维工程师都需要哪些技能

更新时间:2023-04-26 16:04

最满意答案

简短的说就像text框要输入文字一样,你必须先让text取得焦点,获得光标才能进行输入

bitmap就像画布,canvas就像画笔。要画画就要知道画在哪里,所以必须要画布。
view的onDraw的canvas是花在view的背景上,也是类似bitmap上。
缓冲是在另一个后台bitmap上画好在进行展示

以上代表个人通俗理解只做参考理解,不是标准

其他回答

你好!

那个bitmap没有必要 实例化一个Paint 在canvas.drawText() canvas.deawLine();用来绘制线和文本

仅代表个人观点,不喜勿喷,谢谢。

相关问答

更多
  • 简短的说就像text框要输入文字一样,你必须先让text取得焦点,获得光标才能进行输入 bitmap就像画布,canvas就像画笔。要画画就要知道画在哪里,所以必须要画布。 view的onDraw的canvas是花在view的背景上,也是类似bitmap上。 缓冲是在另一个后台bitmap上画好在进行展示 以上代表个人通俗理解只做参考理解,不是标准
  • 虽然我不知道在Android中获取画布宽度和位图宽度的具体方法,但在中间放置位图通常会像这样。 centreX = (canvasWidth - bitmapWidth) /2 centreY = (canvasHeight - bitmapHeight) /2 然后把你的图片放在centreX,centreY While i do not know the specific methods of getting the canvas width and bitmap width in Android ...
  • 这可能比你想象的更简单: int w = WIDTH_PX, h = HEIGHT_PX; Bitmap.Config conf = Bitmap.Config.ARGB_8888; // see other conf types Bitmap bmp = Bitmap.createBitmap(w, h, conf); // this creates a MUTABLE bitmap Canvas canvas = new Canvas(bmp); // ready to draw on that b ...
  • 试试这种方式... -使用Bitmap.createBitmap()创建正确大小的bitmap -使用Canvas(Bitmap)构造函数创建一个指向该位图的canvas instance -画在canvas -使用bitmap Try it this way... - Create a bitmap of the correct size using Bitmap.createBitmap() - Create a canvas instance pointing that this bitmap usi ...
  • 这里的问题是你一直在做大量的绘图,这需要时间来绘制,性能会非常低。 这里有一些关于如何处理它的提示。 你可能最好有一个带有静态东西的视图(背景图像和孔),并且在你的布局上有第二个视图,它只是在绘制球。 在背景图片上,不要调用invalidate。 这样你只需绘制一次背景。 并且您可以使顶部图像(仅限球)无效,因此它可以重新绘制新位置。 我不确定最后一部分:但你可能需要调用invalidate(rect); 通过前一次球的区域,使背景只重绘那个小区域(而不是整个屏幕) 快乐的编码。 The problem h ...
  • 我找到了一个黑客。 我使用ArrayList在每一滴标记后存储带注释的位图。 我只是弹出列表中的最后一项,并在撤消时显示新的位图。 如果有人有兴趣,这里是代码: bitmapLayers.add(annotatedBitmap); 对于撤消: if (!bitmapLayers.isEmpty()) { bitmapLayers.remove(bitmapLayers.size() - 1); Bitmap last = bitmapLayers.get(bitmapLayers. ...
  • 您可以创建画布和位图,但是从不将它们连接到视图: Bitmap bmOverlay = Bitmap.createBitmap(bitmapPicture.getWidth(), bitmapPicture.getHeight(), bitmapPicture.getConfig()); Canvas canvas = new Canvas(bmOverlay); paint.setColor(Color.YELLOW); paint.setStrokeWidth(3); canvas.drawRect(/ ...
  • 回答我自己的问题,因为我想出了一个令人满意的方法来做到这一点。 诀窍是使用ObjectAnimator逐步更改笔划的当前长度,使用DashPathEffect控制当前笔划的长度。 DashPathEffect的dashes参数最初设置为以下值: float[] dashes = { 0.0f, Float.MAX_VALUE }; 第一个浮动是可见行程的长度,第二个是不可见部分的长度。 第二长度选择得非常高。 因此,初始设置对应于完全不可见的笔划。 然后,每次对象动画师更新笔画长度值时, DashPath ...
  • 我认为没有其他方法来绘制而不是画布。 您也可以使用SurfaceView绘制任何形状,甚至是cricle。 首先,你得到SurfaceHolder对象并使用它可以绘制任何东西。 哟可以按照这些链接 - 第一 秒 I think there is no other ways to draw instead of canvas. You can use SurfaceView to draw any shape even a cricle also. First you ahev to get SurfaceH ...
  • 由于您在XML布局文件中添加了自定义视图,因此您应该再添加2个构造函数: public DrawView(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } public DrawView(Context context, AttributeSet attrs) { super(context, attrs); } 这是因为您将一些属性传递给视图,如fill_pa ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)