当前位置:编程学习 > wap >>

[][][][]紧急在线等,iphone取得imagview指定坐标的RGB值,我只有11分所以。。。[][][][]







我的画图的代码如下,请高手指点我想得到imageView中指定坐标点的RGB值,

先谢谢了,本人分不多了就剩11分,给10分了,请可怜可怜我这个穷人吧





  
    //-----------------
   NSString *tmpfilename=[NSString stringWithFormat:@"%@.png",[[self gpsEntity ]fileName]];
    
   NSLog(@"%@",tmpfilename);
    imgbg=[UIImage imageNamed:tmpfilename];
 
    imgGps=[UIImage imageNamed:@"people.png"];
    
    //-----edit xy
    rect=[[UIScreen mainScreen]bounds];
    size=rect.size;
    width=size.width;
    height=size.height;
    .....
    statubarsize=[[UIApplication sharedApplication] statusBarFrame];
    barheight=statubarsize.size.height;
    tmpxy=[self gps2xy:latstr:lonstr:width:height];
.....
    UIImageView *imageView=[[UIImageView alloc]initWithFrame:CGRectMake(0, 44,  width,  height)];
     UIImageView *imageView2=[[UIImageView alloc]initWithFrame:CGRectMake([[tmpxy objectAtIndex:0]floatValue],[[tmpxy objectAtIndex:1]floatValue]+44 , 20.0F, 20.0F)];

    

补充:移动开发 ,  非技术区
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,