Ⅰ C#製作電子相冊,求大神給源碼啊
刪除本地圖片
首先獲得圖片的路徑
string address="路徑";
FileInfo file = new FileInfo(address);
file.delete();
增加就直接保存圖片框裡面的圖片就OK了
SaveFileDialog fileone = new SaveFileDialog();
fileone.OverwritePrompt = true;
fileone.Filter = "BMP文件|*.bmp|GIF文件|*.gif|JPG文件|*.jpg|PNG文件|*.png|ICO文件|*.ico|所有文件|*.*";
fileone.FilterIndex = 1;
fileone.ShowDialog();
if (fileone.FilterIndex == 1)
{
this.picBox.Image.Save(fileone.FileName, System.Drawing.Imaging.ImageFormat.Bmp);
userHelper.iniSuffix = ".bmp";
}
else if (fileone.FilterIndex == 2)
{
this.picBox.Image.Save(fileone.FileName, System.Drawing.Imaging.ImageFormat.Gif);
userHelper.iniSuffix = ".gif";
}
else if (fileone.FilterIndex == 3)
{
this.picBox.Image.Save(fileone.FileName, System.Drawing.Imaging.ImageFormat.Jpeg);
userHelper.iniSuffix = ".jpg";
}
else if (fileone.FilterIndex == 4)
{
this.picBox.Image.Save(fileone.FileName, System.Drawing.Imaging.ImageFormat.Png);
userHelper.iniSuffix = ".png";
}
else
{
this.picBox.Image.Save(fileone.FileName, System.Drawing.Imaging.ImageFormat.Icon);
userHelper.iniSuffix = ".ico";
}
userHelper.iniAddress = fileone.FileName;
toolStripTextBox1.Text = fileone.FileName;
Ⅱ 怎樣做魔方相冊啊
相冊,又稱影集或照片集,是用來裝放相片的物品,相冊主要用來收藏和保護相片使用。相冊的材料有多種,通常相冊由紙殼和PVC插袋製作而成,相冊的表面通常為精美的圖樣設計,如山水風景、明星肖像等。
基本解釋 [photo (photograph)album] 粘貼簿,供收集相片用的簿冊。相冊不僅能夠存儲照片,還是一種展示個人記憶和回憶的方式。
如果你想創建一個魔方相冊,首先需要訪問魔方網站(網址 http://www.picturetrail.com/)。點擊左邊的:Sign up for free!,進入後進行注冊中英文對照:Select a username: 用戶名Select a password: 密碼Enter password again: 再次輸入密碼Your email address: 郵件地址 ZIP/Postal Code: 郵編Additional information In what year were you born? 出生年份 Gender: Male 男 Female 女。注冊成功後登陸 http://www.picturetrail.com/members/edit?,點擊Member Login,輸入密碼進入編輯頁面Username: 用戶名Password: 密碼然後點擊:login http://www.picturetrail.com/members/edit。
接著,你需要建立相冊,點擊Upload Pix上傳照片。選中你要上傳的照片數字和相冊,添加照片,點擊Upload Pics Now。上傳照片成功後,點擊右側的Create a Photo Flick",先選中相冊。點 Use photos from this album你喜歡的電子相冊,選魔方是Acrobat Cube (點View Sample可以先預覽),選中後點continue(繼續)。進入相冊,選6張照片(其它的模式根據需要選定照片),點擊continue(繼續)。這時你就能看到生成了一個轉動的透明魔方,有大、中、小三種尺寸,透明和實心魔方供你選擇。選定後點Redisplay(更新)。
在Photo Flicks Posting Code:一欄中,復制代碼。進入你的博客,發表文章,選中顯示源代碼,將代碼粘貼,發表文章。OK,一個透明魔方就生成了。