如何使一个图像到多个按钮和一些其他的东西 [英] How make one image into multiple buttons and some other stuff

查看:101
本文介绍了如何使一个图像到多个按钮和一些其他的东西的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好吧,我正在用这种盘在它的应用程序: HTTP ://dl.dropbox.com/u/8051037/disk_full.png

Ok, I'm making an app with this kind of of disk in it: http://dl.dropbox.com/u/8051037/disk_full.png

我有两个环作为单独的图像,但我需要找出一种方法来定位他们就像他们在图像中,第一关。我在搞清楚布局不是很大,所以我真的不知道从哪里开始与该

I have the two rings as separate images, but I need to figure out a way to position them like they are in the image, first off. I'm not great at figuring out layouts, so I don't really know where to start with that.

另外,我需要由黑线限定的每个部分是一个不同的ImageButton。我一直在到处寻找一个答案,但没有人能够帮助我至今。

Also, I need each section defined by the black lines to be a different imagebutton. I've been everywhere looking for an answer to this, but no one's been able to help me so far.

感谢您的帮助,一直停留在这个问题上几天吧!

Thanks for any help, been stuck on this problem for a few days now!

推荐答案

您需要的影像地图(其中以下基本结构)来创建可点击的位(的例如):

You'll need an image map (which follows this basic structure) to create the click-able bits (example):

<map name="map-name">
<area shape="rect" coords="135,180,200,185" href="webpage1.html">
<area shape="circle" coords="49,300,42" href="webpage2.html">
<area shape="poly" coords="24,35,55,20,90,42,91,80,60,105" href="webpage3.html">
</map>
<img src="image.gif" usemap="#map-name">

有关你的位置,你不能很容易叠加图像,仍然保持了点击的区域工作良好。有没有办法让你的形象从一开始就结合(在Photoshop)?

For your positioning you can't superimpose images very easily and still keep the click-able regions working well. Is there no way for you to combine the images from the start (in photoshop)?

这篇关于如何使一个图像到多个按钮和一些其他的东西的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆