當前位置:首頁 » 網上購物 » sypcut怎樣填充顏色
擴展閱讀
電腦怎樣下載俠盜飛車 2022-07-04 08:24:40
怎樣把視頻導入itunes 2022-07-04 08:21:13

sypcut怎樣填充顏色

發布時間: 2022-05-19 03:50:32

⑴ ps中怎樣給新建的畫布填充顏色

編輯--填充--選擇顏色
其實,你對怎樣填充,根本沒有動腦子,學一樣技術,也要有點專研的精神,你就是瞎點菜單也會找到填充這一選項的。

⑵ ppt中怎樣填充背景色

PPT中填充背景顏色方法:
1、首先打開要填充顏色的幻燈片,右擊選擇「設置背景格式」。
2、選擇純色填充或漸變填充。
3、選擇想要填充的顏色,點擊即可。
4、想要全部的幻燈片應用一樣的顏色,點擊「全部應用」。

⑶ final cut pro7里,我想讓做好的字幕文件(原來是文本的)批量改成空心字,你會嗎該怎麼做啊

數量多嗎? 有的字體是有這樣的,叫做空心字體。 另外字體的有邊緣顏色和中間填充顏色,將中間填充的顏色改為無,然後將邊緣顏色改成白色的。就是空心的了。

⑷ C#中上傳圖片

using System.IO; //引入命名空間
//上傳方法
private void Upimage()
{
if(File1.Value!="")
{
string fileContentType = File1.PostedFile.ContentType;//獲取文件類型
//判斷文件類型.只能是 BMP GIF pjpeg swf
if (fileContentType == "image/bmp" || fileContentType == "image/gif" || fileContentType == "image/pjpeg" || fileContentType == "image/swf")
{
//判斷文件大小
if (File1.PostedFile.ContentLength / 1024 < 2000)
{
string name = File1.PostedFile.FileName; // 客戶端文件路徑
FileInfo file = new FileInfo(name);

//獲取文件名稱
//把當前時間取出,組成字元串,加入文件名稱,防止重復命名
string fileName = System.DateTime.Now.ToString().Replace("-", "").Replace(" ", "").Replace(":", "") + file.Name;//文件名稱
string pathss = Server.MapPath("Upimage") + "\\" + fileName;//伺服器保存路徑

try
{
//上傳文件
Label2.Text = "正在上傳,請等待...";
File1.PostedFile.SaveAs(Server.MapPath("Upimage") + "\\" +
fileName);
//把基本信息寫進資料庫,保存圖片在伺服器的路
cc="文件:"+fileName+"上傳成功!";
Open();
this.Label2.Text=fileName;
this.Im2.Visible=true;
this.Im1.Visible=false;

}
catch (Exception ex)
{
cc = "錯誤: " + ex.Message.ToString();
Open();
this.Im1.Visible = true;
this.Im2.Visible = false;
}
}
else
{
cc = "對不起,文件太大.";
Open();
this.Im1.Visible = true;
this.Im2.Visible = false;
}
}
else
{
cc = "請上傳正確文件格式";
}
}
else
{
hh();
}

}

⑸ 上傳圖片時自動添加水印水印

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using System.IO;
public partial class Default2 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{

}

protected void Button1_Click(object sender, EventArgs e)
{
if (FileUpload1.HasFile)
{
string fileContentType = FileUpload1.PostedFile.ContentType;
if (fileContentType == "image/bmp" || fileContentType == "image/gif" || fileContentType == "image/pjpeg")
{
string name = FileUpload1.PostedFile.FileName; // 客戶端文件路徑

FileInfo file = new FileInfo(name);
string fileName = file.Name; // 文件名稱
string fileName_s = "s_" + file.Name; // 縮略圖文件名稱
string fileName_sy = "sy_" + file.Name; // 水印圖文件名稱(文字)
string fileName_syp = "syp_" + file.Name; // 水印圖文件名稱(圖片)
string webFilePath = Server.MapPath("file/" + fileName); // 伺服器端文件路徑
string webFilePath_s = Server.MapPath("file/" + fileName_s); // 伺服器端縮略圖路徑
string webFilePath_sy = Server.MapPath("file/" + fileName_sy); // 伺服器端帶水印圖路徑(文字)
string webFilePath_syp = Server.MapPath("file/" + fileName_syp); // 伺服器端帶水印圖路徑(圖片)
string webFilePath_sypf = Server.MapPath("file/shuiyin.jpg"); // 伺服器端水印圖路徑(圖片)

if (!File.Exists(webFilePath))
{
try
{
FileUpload1.SaveAs(webFilePath); // 使用 SaveAs 方法保存文件
AddShuiYinWord(webFilePath, webFilePath_sy);
AddShuiYinPic(webFilePath, webFilePath_syp, webFilePath_sypf);
MakeThumbnail(webFilePath, webFilePath_s, 130, 130, "Cut"); // 生成縮略圖方法
Label1.Text = "提示:文件「" + fileName + "」成功上傳,並生成「" + fileName_s + "」縮略圖,文件類型為:" + FileUpload1.PostedFile.ContentType + ",文件大小為:" + FileUpload1.PostedFile.ContentLength + "B";
}
catch (Exception ex)
{
Label1.Text = "提示:文件上傳失敗,失敗原因:" + ex.Message;
}
}
else
{
Label1.Text = "提示:文件已經存在,請重命名後上傳";
}
}
else
{
Label1.Text = "提示:文件類型不符";
}
}
}
public static void MakeThumbnail(string originalImagePath, string thumbnailPath, int width, int height, string mode)
{
System.Drawing.Image originalImage = System.Drawing.Image.FromFile(originalImagePath);

int towidth = width;
int toheight = height;

int x = 0;
int y = 0;
int ow = originalImage.Width;
int oh = originalImage.Height;

switch (mode)
{
case "HW"://指定高寬縮放(可能變形)
break;
case "W"://指定寬,高按比例
toheight = originalImage.Height * width / originalImage.Width;
break;
case "H"://指定高,寬按比例
towidth = originalImage.Width * height / originalImage.Height;
break;
case "Cut"://指定高寬裁減(不變形)
if ((double)originalImage.Width / (double)originalImage.Height > (double)towidth / (double)toheight)
{
oh = originalImage.Height;
ow = originalImage.Height * towidth / toheight;
y = 0;
x = (originalImage.Width - ow) / 2;
}
else
{
ow = originalImage.Width;
oh = originalImage.Width * height / towidth;
x = 0;
y = (originalImage.Height - oh) / 2;
}
break;
default:
break;
}

//新建一個bmp圖片
System.Drawing.Image bitmap = new System.Drawing.Bitmap(towidth, toheight);

//新建一個畫板
System.Drawing.Graphics g = System.Drawing.Graphics.FromImage(bitmap);
//設置高質量插值法
g.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.High;

//設置高質量,低速度呈現平滑程度
g.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality;

//清空畫布並以透明背景色填充
g.Clear(System.Drawing.Color.Transparent);

//在指定位置並且按指定大小繪制原圖片的指定部分
g.DrawImage(originalImage, new System.Drawing.Rectangle(0, 0, towidth, toheight),
new System.Drawing.Rectangle(x, y, ow, oh),
System.Drawing.GraphicsUnit.Pixel);

try
{
//以jpg格式保存縮略圖
bitmap.Save(thumbnailPath, System.Drawing.Imaging.ImageFormat.Jpeg);
}
catch (System.Exception e)
{
throw e;
}
finally
{
originalImage.Dispose();
bitmap.Dispose();
g.Dispose();
}
}

protected void AddShuiYinWord(string Path, string Path_sy)
{
string addText = "測試水印";
System.Drawing.Image image = System.Drawing.Image.FromFile(Path);
System.Drawing.Graphics g = System.Drawing.Graphics.FromImage(image);
g.DrawImage(image, 0, 0, image.Width, image.Height);
System.Drawing.Font f = new System.Drawing.Font("Verdana", 16);
System.Drawing.Brush b = new System.Drawing.SolidBrush(System.Drawing.Color.Blue);

g.DrawString(addText, f, b, 15, 15);
g.Dispose();

image.Save(Path_sy);
image.Dispose();
}

/**//// <summary>
/// 在圖片上生成圖片水印
/// </summary>
/// <param name="Path">原伺服器圖片路徑</param>
/// <param name="Path_syp">生成的帶圖片水印的圖片路徑</param>
/// <param name="Path_sypf">水印圖片路徑</param>
protected void AddShuiYinPic(string Path, string Path_syp, string Path_sypf)
{
System.Drawing.Image image = System.Drawing.Image.FromFile(Path);
System.Drawing.Image Image = System.Drawing.Image.FromFile(Path_sypf);
System.Drawing.Graphics g = System.Drawing.Graphics.FromImage(image);
g.DrawImage(Image, new System.Drawing.Rectangle(image.Width - Image.Width, image.Height - Image.Height, Image.Width, Image.Height), 0, 0, Image.Width,Image.Height, System.Drawing.GraphicsUnit.Pixel);
g.Dispose();

image.Save(Path_syp);
image.Dispose();
}

}

⑹ JAVA畫圖板程序,用netbeans做,要求畫圓,橢圓,直線,三角形,矩形,可以填充顏色和擦除

importjava.applet.*;
importjava.awt.*;
importjava.awt.event.*;
importjava.util.*;
importjavax.swing.*;
importjava.awt.geom.*;
importjava.io.*;
importjava.sql.Connection;


{
intx,y;
Colorcol;
inttool;
intboarder;

Point(intx,inty,Colorcol,inttool,intboarder)
{
this.x=x;
this.y=y;
this.col=col;
this.tool=tool;
this.boarder=boarder;
}
}

,MouseMotionListener,MouseListener,ItemListener
{
intx=-1,y=-1;
intcon=1;//畫筆大小
intEcon=5;//橡皮大小

inttoolFlag=0;//toolFlag:工具標記
//toolFlag工具對應表:
//(0--畫筆);(1--橡皮);(2--清除);
//(3--直線);(4--圓);(5--矩形);

Colorc=newColor(0,0,0);//畫筆顏色
BasicStrokesize=newBasicStroke(con,BasicStroke.CAP_BUTT,BasicStroke.JOIN_BEVEL);//畫筆粗細
Pointcutflag=newPoint(-1,-1,c,6,con);//截斷標志


VectorpaintInfo=null;//點信息向量組
intn=1;

FileInputStreampicIn=null;
FileOutputStreampicOut=null;

ObjectInputStreamVIn=null;
ObjectOutputStreamVOut=null;

//*工具面板--畫筆,直線,圓,矩形,多邊形,橡皮,清除*/
PaneltoolPanel;
Buttoneraser,drLine,drCircle,drRect;
Buttonclear,pen;
ChoiceColChoice,SizeChoice,EraserChoice;
Buttoncolchooser;
Label顏色,大小B,大小E;
//保存功能
ButtonopenPic,savePic;
FileDialogopenPicture,savePicture;

paintboard(Strings)
{
super(s);
addMouseMotionListener(this);
addMouseListener(this);

paintInfo=newVector();

/*各工具按鈕及選擇項*/
//顏色選擇
ColChoice=newChoice();
ColChoice.add("black");
ColChoice.add("red");
ColChoice.add("blue");
ColChoice.add("green");
ColChoice.addItemListener(this);
//畫筆大小選擇
SizeChoice=newChoice();
SizeChoice.add("1");
SizeChoice.add("3");
SizeChoice.add("5");
SizeChoice.add("7");
SizeChoice.add("9");
SizeChoice.addItemListener(this);
//橡皮大小選擇
EraserChoice=newChoice();
EraserChoice.add("5");
EraserChoice.add("9");
EraserChoice.add("13");
EraserChoice.add("17");
EraserChoice.addItemListener(this);
////////////////////////////////////////////////////
toolPanel=newPanel();

clear=newButton("清除");
eraser=newButton("橡皮");
pen=newButton("畫筆");
drLine=newButton("畫直線");
drCircle=newButton("畫圓形");
drRect=newButton("畫矩形");

openPic=newButton("打開圖畫");
savePic=newButton("保存圖畫");

colchooser=newButton("顯示調色板");

//各組件事件監聽
clear.addActionListener(this);
eraser.addActionListener(this);
pen.addActionListener(this);
drLine.addActionListener(this);
drCircle.addActionListener(this);
drRect.addActionListener(this);
openPic.addActionListener(this);
savePic.addActionListener(this);
colchooser.addActionListener(this);

顏色=newLabel("畫筆顏色",Label.CENTER);
大小B=newLabel("畫筆大小",Label.CENTER);
大小E=newLabel("橡皮大小",Label.CENTER);
//面板添加組件
toolPanel.add(openPic);
toolPanel.add(savePic);

toolPanel.add(pen);
toolPanel.add(drLine);
toolPanel.add(drCircle);
toolPanel.add(drRect);

toolPanel.add(顏色);toolPanel.add(ColChoice);
toolPanel.add(大小B);toolPanel.add(SizeChoice);
toolPanel.add(colchooser);

toolPanel.add(eraser);
toolPanel.add(大小E);toolPanel.add(EraserChoice);

toolPanel.add(clear);
//工具面板到APPLET面板
add(toolPanel,BorderLayout.NORTH);

setBounds(60,60,900,600);setVisible(true);
validate();
//dialogforsaveandload

openPicture=newFileDialog(this,"打開圖畫",FileDialog.LOAD);
openPicture.setVisible(false);
savePicture=newFileDialog(this,"保存圖畫",FileDialog.SAVE);
savePicture.setVisible(false);

openPicture.addWindowListener(newWindowAdapter()
{
publicvoidwindowClosing(WindowEvente)
{openPicture.setVisible(false);}
});

savePicture.addWindowListener(newWindowAdapter()
{
@Override
publicvoidwindowClosing(WindowEvente)
{savePicture.setVisible(false);}
});

addWindowListener(newWindowAdapter()
{
publicvoidwindowClosing(WindowEvente)
{System.exit(0);}
});

}

publicvoidpaint(Graphicsg)
{
Graphics2Dg2d=(Graphics2D)g;

Pointp1,p2;

n=paintInfo.size();

if(toolFlag==2)
g.clearRect(0,0,getSize().width,getSize().height);//清除

for(inti=0;i<n;i++){
p1=(Point)paintInfo.elementAt(i);
p2=(Point)paintInfo.elementAt(i+1);
size=newBasicStroke(p1.boarder,BasicStroke.CAP_BUTT,BasicStroke.JOIN_BEVEL);

g2d.setColor(p1.col);
g2d.setStroke(size);

if(p1.tool==p2.tool)
{
switch(p1.tool)
{
case0://畫筆

Line2Dline1=newLine2D.Double(p1.x,p1.y,p2.x,p2.y);
g2d.draw(line1);
break;

case1://橡皮
g.clearRect(p1.x,p1.y,p1.boarder,p1.boarder);
break;

case3://畫直線
Line2Dline2=newLine2D.Double(p1.x,p1.y,p2.x,p2.y);
g2d.draw(line2);
break;

case4://畫圓
Ellipse2Dellipse=newEllipse2D.Double(p1.x,p1.y,Math.abs(p2.x-p1.x),Math.abs(p2.y-p1.y));
g2d.draw(ellipse);
break;

case5://畫矩形
Rectangle2Drect=newRectangle2D.Double(p1.x,p1.y,Math.abs(p2.x-p1.x),Math.abs(p2.y-p1.y));
g2d.draw(rect);
break;

case6://截斷,跳過
i=i+1;
break;

default:
}//endswitch
}//endif
}//endfor
}

publicvoiditemStateChanged(ItemEvente)
{
if(e.getSource()==ColChoice)//預選顏色
{
Stringname=ColChoice.getSelectedItem();
switch(name){
case"black":
c=newColor(0,0,0);
break;
case"red":
c=newColor(255,0,0);
break;
case"green":
c=newColor(0,255,0);
break;
case"blue":
c=newColor(0,0,255);
break;
}
}
elseif(e.getSource()==SizeChoice)//畫筆大小
{
Stringselected=SizeChoice.getSelectedItem();
switch(selected){
case"1":
con=1;
size=newBasicStroke(con,BasicStroke.CAP_BUTT,BasicStroke.JOIN_BEVEL);
break;
case"3":
con=3;
size=newBasicStroke(con,BasicStroke.CAP_BUTT,BasicStroke.JOIN_BEVEL);
break;
case"5":
con=5;
size=newBasicStroke(con,BasicStroke.CAP_BUTT,BasicStroke.JOIN_BEVEL);
break;
case"7":
con=7;
size=newBasicStroke(con,BasicStroke.CAP_BUTT,BasicStroke.JOIN_BEVEL);
break;
case"9":
con=9;
size=newBasicStroke(con,BasicStroke.CAP_BUTT,BasicStroke.JOIN_BEVEL);
break;
}
}
elseif(e.getSource()==EraserChoice)//橡皮大小
{
StringEsize=EraserChoice.getSelectedItem();

if(Esize=="5")
{Econ=5*2;}
elseif(Esize=="9")
{Econ=9*2;}
elseif(Esize=="13")
{Econ=13*2;}
elseif(Esize=="17")
{Econ=17*3;}

}

}

publicvoidmouseDragged(MouseEvente)
{
Pointp1;
switch(toolFlag){
case0://畫筆
x=(int)e.getX();
y=(int)e.getY();
p1=newPoint(x,y,c,toolFlag,con);
paintInfo.addElement(p1);
repaint();
break;

case1://橡皮
x=(int)e.getX();
y=(int)e.getY();
p1=newPoint(x,y,null,toolFlag,Econ);
paintInfo.addElement(p1);
repaint();
break;

default:
}
}

publicvoidmouseMoved(MouseEvente){}

publicvoipdate(Graphicsg)
{
paint(g);
}

publicvoidmousePressed(MouseEvente)
{
Pointp2;
switch(toolFlag){
case3://直線
x=(int)e.getX();
y=(int)e.getY();
p2=newPoint(x,y,c,toolFlag,con);
paintInfo.addElement(p2);
break;

case4://圓
x=(int)e.getX();
y=(int)e.getY();
p2=newPoint(x,y,c,toolFlag,con);
paintInfo.addElement(p2);
break;

case5://矩形
x=(int)e.getX();
y=(int)e.getY();
p2=newPoint(x,y,c,toolFlag,con);
paintInfo.addElement(p2);
break;

default:
}
}

publicvoidmouseReleased(MouseEvente)
{
Pointp3;
switch(toolFlag){
case0://畫筆
paintInfo.addElement(cutflag);
break;

case1://eraser
paintInfo.addElement(cutflag);
break;

case3://直線
x=(int)e.getX();
y=(int)e.getY();
p3=newPoint(x,y,c,toolFlag,con);
paintInfo.addElement(p3);
paintInfo.addElement(cutflag);
repaint();
break;

case4://圓
x=(int)e.getX();
y=(int)e.getY();
p3=newPoint(x,y,c,toolFlag,con);
paintInfo.addElement(p3);
paintInfo.addElement(cutflag);
repaint();
break;

case5://矩形
x=(int)e.getX();
y=(int)e.getY();
p3=newPoint(x,y,c,toolFlag,con);
paintInfo.addElement(p3);
paintInfo.addElement(cutflag);
repaint();
break;

default:
}
}

publicvoidmouseEntered(MouseEvente){}

publicvoidmouseExited(MouseEvente){}

publicvoidmouseClicked(MouseEvente){}

publicvoidactionPerformed(ActionEvente)
{

if(e.getSource()==pen)//畫筆
{toolFlag=0;}

if(e.getSource()==eraser)//橡皮
{toolFlag=1;}

if(e.getSource()==clear)//清除
{
toolFlag=2;
paintInfo.removeAllElements();
repaint();
}

if(e.getSource()==drLine)//畫線
{toolFlag=3;}

if(e.getSource()==drCircle)//畫圓
{toolFlag=4;}

if(e.getSource()==drRect)//畫矩形
{toolFlag=5;}

if(e.getSource()==colchooser)//調色板
{
ColornewColor=JColorChooser.showDialog(this,"調色板",c);
c=newColor;
}

if(e.getSource()==openPic)//打開圖畫
{

openPicture.setVisible(true);

if(openPicture.getFile()!=null)
{
inttempflag;
tempflag=toolFlag;
toolFlag=2;
repaint();

try{
paintInfo.removeAllElements();
Filefilein=newFile(openPicture.getDirectory(),openPicture.getFile());
picIn=newFileInputStream(filein);
VIn=newObjectInputStream(picIn);
paintInfo=(Vector)VIn.readObject();
VIn.close();
repaint();
toolFlag=tempflag;

}

catch(ClassNotFoundExceptionIOe2)
{
repaint();
toolFlag=tempflag;
System.out.println("cannotreadobject");
}
catch(IOExceptionIOe)
{
repaint();
toolFlag=tempflag;
System.out.println("cannotreadfile");
}
}

}

if(e.getSource()==savePic)//保存圖畫
{
savePicture.setVisible(true);
try{
Filefileout=newFile(savePicture.getDirectory(),savePicture.getFile());
picOut=newFileOutputStream(fileout);
VOut=newObjectOutputStream(picOut);
VOut.writeObject(paintInfo);
VOut.close();
}
catch(IOExceptionIOe)
{
System.out.println("cannotwriteobject");
}

}
}
}//endpaintboard

publicclassPb
{
publicstaticvoidmain(Stringargs[])
{newpaintboard("畫圖程序");}
}

⑺ Photoshop怎樣給文字填充顏色

1.先把文字圖層柵格化
2.在背景顏色中選擇你想要的顏色
3.按CTRL和DELETE(顏色填充)
4.再按CTRL和D就可以了

⑻ ppt中怎樣填充背景色

PPT中填充背景顏色方法:

1、首先打開要填充顏色的幻燈片,右擊選擇「設置背景格式」。