谁能帮我改一下,下面的代码,我图片是90*56,排2排,每排7个,要在Dictionary调出图片的坐标,大小.

问题描述

Dictionary<string,Hero>monsters=newDictionary<string,Hero>();OpenFileDialogof=newOpenFileDialog();of.Multiselect=true;of.Filter="jpg文件;asdfsad;asdfsa|*.jpg|bmp文件|*.bmp|gif文件|*.gif";if(of.ShowDialog(this)==DialogResult.OK){monsters.Clear();for(inti=0;i<of.FileNames.Length;i++){stringss=of.FileNames[i];FileStreamfs=newFileStream(ss,FileMode.Open,FileAccess.Read);System.Drawing.ImageobjPic=newSystem.Drawing.Bitmap(fs);fs.Close();intw=objPic.Height;inty=objPic.Width;if(monsters.ContainsKey(ss)){monsters[ss]=newHero(Image.FromFile(ss),newSize(w,y),newPoint(w,y));}else{monsters.Add(ss,newHero(Image.FromFile(ss),newSize(w,y),newPoint(w,y)));}}}

时间: 2024-08-04 02:18:21

谁能帮我改一下,下面的代码,我图片是90*56,排2排,每排7个,要在Dictionary调出图片的坐标,大小.的相关文章

变换-麻烦各位帮我改下程序吧,输入#include &amp;amp;quot;stdafx.h&amp;amp;quot;在VC++上面不能运行呀~~

问题描述 麻烦各位帮我改下程序吧,输入#include "stdafx.h"在VC++上面不能运行呀~~ #include ""stdafx.h""#include #include #include #include #include #define N 1000 /*定义复数类型*/ typedef struct { double real; double img; }complex; void fft(); /*快速傅里叶变换*/ void

写一个mysql数据库的sql 递归查询,我现在有个能查询三级的,谁能帮我改为查询四级或五级的

问题描述 select distinct * from (select * from news_types where news_types.id=1 union select n2.* from news_types n1,news_types n2 where n1.id=1 and n2.parentid=n1.id union select n3.* from news_types n3,( select n2.* from news_types n1,news_types n2 whe

c-求大神帮我改成链表方法。。

问题描述 求大神帮我改成链表方法.. #include #include #include struct Student { char id[20]; char name[20]; float Chinese; float Math; float English; float average; }students[1024]; int j=0; int id1(char id[]) { int i; for (i=0;i<j;i++) { if (strcmp(students[i].id,id

这个一维怎么改成2维!大家帮我改下!!!

问题描述 这个一维怎么改成2维!大家帮我改下!!!List<string>list=newList<string>();if(rslt.结果.ChildNodes.Count>0){for(i=0;searcher.返回字段List.Length;i++){foreach(XmlElementelementinrslt.结果.ChildNodes){if(((XmlCDataSection)element.ChildNodes[1].FirstChild).Value==&q

网络电话公司帮人改号码

日前,警方查处"乘宇风公司".深圳商报记者 管亚东 通讯员 周 瀚 摄 深圳商报记者 管亚东 通讯员 周瀚 时下电信诈骗案件之所以屡屡得手,很重要的一个原因就是那个来电显示的号码可能"真"是110.119,或者是公检法机关的号码. 一家名叫"乘宇风公司"就专做这样为虎作伥的生意,为电信诈骗者提供一种称之"号码百变"的功能,就是在接收者的手机或电话上可以显示任何号码.记者昨天从宝安警方获悉,警方刚刚打掉一个VOIP(网络电话)电

c语言-麻烦大家帮我看一下这段代码有啥错误?

问题描述 麻烦大家帮我看一下这段代码有啥错误? #include<stdio.h> int b[100],c[100],x; void input(int a[],int n) {printf("输入数组a<10个元素>:"); for(int i=0;i<n;i++) scanf("%c",&a[i]);} void insert(int a[],int n,int x) {for(int i=0;i<n;i++) if

帮我看一下,这个代码我怎么找不到上传文件的地方呢

问题描述 帮我看一下,这个代码我怎么找不到上传文件的地方呢 基本是按http://blog.csdn.net/jingdian14/article/details/7885416这个来写的 但是好像没有上传文件啊,如果有,哪一个语句是是往uri上传文件?运行winform每次返回的returnvalue都是0,那不就表示根本没完成上传吗,为什么?我也测试过了这个returnvalue=0确实是 else if (sReturnString == "Error") { returnVal

javascript-麻烦大家帮我看看下面的js代码有什么问题?

问题描述 麻烦大家帮我看看下面的js代码有什么问题? var datas=[]; var datam=[]; for(var i=0;i<dataset.provinces.length;i++) { var name= dataset.provinces[i].name; var value= dataset.provinces[i].value; datas[name]=value; //例如 datas[北京]=14149 alert(datas.length); datam.push(v

注册表-VC如何修改浏览器的主页,先帮我看下我的代码哪儿错了

问题描述 VC如何修改浏览器的主页,先帮我看下我的代码哪儿错了 void main() { HKEY hkey1,hkey2; DWORD dwDisposition1,dwDisposition2; RegCreateKeyEx(HKEY_CURRENT_USER,"SoftwareMicrosoftInternet ExplorerMain",0,NULL,0,KEY_ALL_ACCESS,0,&hkey1,&dwDisposition1); RegSetValue