Draw and color directdraw是什么么意思

Draw an apple. Colour iu red. 什么意思? 答题有奖_百度知道
Draw an apple. Colour iu red. 什么意思? 答题有奖
提问者采纳
你好,很高兴为你解答意思是画一个苹果颜色是红色的希望对你有帮助
那Draw a strawberry.Colour it red.
????。。。?????????????????????!????!??,。??!。?!,。!!?
画一个草莓 用红颜色
Draw a watermelon.
什么意思?
画一个西瓜
green什么意思
提问者评价
太给力了,你的回答完美地解决了我的问题,非常感谢!
来自团队:
其他类似问题
为您推荐:
其他5条回答
画一个苹果是红色的。
画一个苹果
颜色是红色的
笨蛋,连一个粉丝都没有。
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁drawabookandcolourityellow的汉语是啥意思_百度知道
drawabookandcolourityellow的汉语是啥意思
我有更好的答案
画一本书,并用黄色。
能写好一点吗?
其他类似问题
为您推荐:
汉语的相关知识
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁7767人阅读
Android(44)
今天在开发过程中遇到一个很蛋痛的问题,最终发现是系统的问,值得总结一下。
我在实现一个基于Adapter的LinearLayout的时候,想在第一个View中间绘制一个间隔线(Divider),接收一个Drawable对象,这是前提。
在绘制间隔线的时候,我的代码是这样的:
private void drawVerticalDividers(Canvas canvas) {
int count = mShowLastDivider ? getChildCount() : (getChildCount() - 1);
if (null != mDivider && count & 0) {
int height = mDividerS
int top = 0;
int offset = (mSpace - height) / 2;
View child =
Rect bounds = mTempR
bounds.left = getPaddingLeft();
bounds.right = bounds.left + getWidth() - getPaddingRight();
for (int i = 0; i & ++i) {
child = getChildAt(i);
top = child.getBottom() +
bounds.top
bounds.bottom = top +
drawDivider(canvas, bounds);
在每一个Child的下面绘制一个分隔线,这种算法是没有问题的。
在使用的时候,我设置一个ColorDrawable对象,运行在4.x的系统上面,完全没有问题,但是在2.x的系统上面,结束整个LinearLayout的背景色都变成了我设置的Divider的颜色,这很奇怪呀。我一直在怀疑是不是我的算法有问题,但最终一一排除,发现绘制Drawable的问题,最后就把源码拿出来看,果然,2.x版本的ColorDrawable与4.x的draw()方法实现不一样:
2.x版本的ColorDrawable#draw()实现:
public void draw(Canvas canvas) {
canvas.drawColor(mState.mUseColor);
它就简单粗暴地在整个Canvas上面绘制一个color,所以会导致整个View都成了指定的颜色
4.x版本的ColorDrawable#draw()实现
public void draw(Canvas canvas) {
if ((mState.mUseColor &&& 24) != 0) {
mPaint.setColor(mState.mUseColor);
canvas.drawRect(getBounds(), mPaint);
}它是绘制一个bounds的Rect,所以它的绘制区域是我指定的bound。
我是怎么解决这个问题呢?
很简单,在绘制divider之前,用指定的bound来剪切Canvas:
final Drawable divider = mD
if (null != divider) {
canvas.save();
canvas.clipRect(bounds);
divider.setBounds(bounds);
divider.draw(canvas);
canvas.restore();
这样就没有问题了。
只能说Android也在一步一步的完善,它的源码也在不断的进步,这是很好的,这也同时告诉我们,在开发Android应用程序的时候,要多注意到不同OS版本之间的差异性,每当Google推出新版本的OS的时候,要多多关注一下新功能,新改进,这样在开发过程中也能降低这种风险。
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:500541次
积分:5355
积分:5355
排名:第2707名
原创:102篇
评论:585条
(1)(2)(1)(1)(1)(21)(1)(58)(1)(3)(13)Get the latest Fun2draw free gift drawings & printables, watch exclusive EXTRA videos and more ,
the official Fun2draw website!
Created by Mei Yu, a Canadian artist, Fun2draw is a popular Youtube
cartoon art and drawing tutorial channel with 500+ how to draw step by step and learn to draw videos for kids, beginners and aspiring artists. Some of Fun2draw's top Youtube videos include cartoons like cute, easy and fun animals, pets, popular cat and dog breeds, celebrities, chibis, video game, cartoon, movie & comic book characters, top YA Teen book & novel characters, Holiday cartoons & pictures - Christmas, Halloween, New Years, Valentine's, Easter, Mother's Day, Father's Day, summer, winter and birthday pictures - kawaii things, popular Japanese anime and manga characters, cartoon people, girls, guys, stylish teens, back to school cartoons, Princesses, fantasy & fairy tale pictures, dragons, unicorns, ponies, cosmetics and makeup, dresses, fashion and trendy clothes, fast food, desserts, candy, treats, drinks and more!
Here , you'll find what you can't get on Youtube: Print out the latest Fun2draw freebies and free gift drawings. Also,
learn more about all the Fun2draw apps for Apple and Android devices, including the ipad, ipad mini, iphone, ipod, smartphones & tablets. These Fun2draw apps will show you how to draw and color cute, easy & stylish NEVER-Before-Seen Fun2draw cartoon characters, animals, people and food step by step.
Keep Watching, Sharing and Fun2drawing! &3
Check back so you won't miss new Fun2draw Free Gift Drawings!
Learn how to draw some of the most popular and loved movie, game + show characters as super cute kawaii Fun2draw cartoons!
Fun2draw Business contact: fun2draw(at)yahoo(dot)ca
Fun2draw&#153, Fun2draw videos, apps, characters, drawings and their distinctive likeness are trademarks and / or copyrights of Mei Yu.
Please report copyright / trademark violations to Mei Yu by the email above.
© 2015 Mei Yu. All Rights Reserved. By using this site, you agree to the
This website contains advertising. Mei Yu is not responsible for the kinds of advertisements shown on this site.
Apple and the Apple logo are trademarks of Apple Inc., registered in the U.S. and other countries. App Store is a service mark of Apple Inc.
Google Play is a trademark of Google Inc.draw and_百度作业帮
画并涂色这个应该是哪个题的答题要求,其实在卓美教育,课堂上有很多这样有趣的画画,涂色,唱歌,表演活动,孩子们都可以边玩边学.
应该是“画画”的意思
画出并染色}

我要回帖

更多关于 directdraw是什么 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信