xpm文件(xpm文件怎么修改)

博主:adminadmin 2024-03-14 22:21:02 條評論
摘要:今天給各位分享xpm文件的知識,其中也會對xpm文件怎么修改進行解釋,現在開始吧!XPM文件如何轉換為JPEG告訴你很簡單的方法,直接...
www.usteel.net

今天給各位分享xpm文件的知識,其中也會對xpm文件怎么修改進行解釋,現在開始吧!

XPM文件如何轉換為JPEG

xpm文件(xpm文件怎么修改)

告訴你很簡單 的方法,直接打開picrr網站,然后點編輯,打開你的XPM文件然后點另存為選擇JPG格式就可以了,不需要下載任何東西,直接打開網站就能操作。

如何設置Photoshop 不產生.XPM文件

ps里面的Camera Raw 首選項設置默認是:將圖像設置存儲在:附屬“.xmp”文件。可以設置為“Camera Raw數據庫”,確定后重啟ps。

XPM是什么文件

XPM(XPixMap)圖形格式是X11中一個標準圖形格式,它把圖形保存成ASCII文本,一個XPM的定義不僅僅是ASCII形式,它的格式還可以是 C源代碼形式的,可以直接將它編輯到自己的應用程序中去。

XBM作為XPM的一個特例,也可以保存為ASCII和 C源碼的形式,通常用作鼠標鍵盤指針。 GRUB下可支持的背景圖片格式!

各類文件擴展名

我們經常接觸的擴展名有doc(Word文檔)、wps(Wps文檔)、xls(Excel電子表格)、ppt(Powerpoint演示文稿)、jpg(圖片)、txt(純文本)、rar(Winrar壓縮文件)、htm(網頁文件)、html(網頁文件)等等。

壓縮和打包文件:

.bz2 — bzip2壓縮文件

.gz — gzip壓縮文件

.tar —tar打包文件

.tbz — tar打包并用bzip壓縮的文件

.tgz — tar打包并用gzip壓縮的文件.

文件格式

.au — audio文件

.gif — GIF圖象文件

.html/.htm — HTML文件

.jpg — JPEG圖象文件

.pdf — 文檔的電子圖象; PDF代表Portable Document Format

.png — PNG圖象(Portable Network Graphic的縮寫)

.ps — PostScript文件; 打印格式文件

.txt — 純文本文件

.wav — audio文件

.xpm — 圖象文件

系統文件

.conf — 配置文件

.lock — lock文件; 用來判斷一個程序或者設備是否在被使用

.rpm — Red Hat Package Manager文件,用來安裝程序,軟件和腳本文件

.c — c源程序代碼文件

.cpp — C++源程序代碼文件

.h — C或者C++程序的頭文件

.o — 程序目標文件

.pl — Perl腳本

.so — 類庫文件

.tcl — TCL腳本

請問怎樣將JPG的圖片轉化為XPM的圖片?用什么軟件啊?

需要三個軟件:

1. FireWorks

2. ACD Photo Editor

3. Xnview

具體做法,請參考資料:

Windows下制作xpm圖片的方法

Windows下制作xpm圖片的方法 GRUB的背景圖片需要是6404808(色深為4)14色的xpm圖片。只有滿足以上所有的條件,得到的xpm背景圖片在啟動GRUB后才不會失真。下面介紹在Windows下制作xpm圖片的方法。

一、所需工具

1. FireWorks

2. ACD Photo Editor

3. Xnview

二、準備自己喜歡的圖片(可以是JPG、PNG等常用的格式)

三、用FireWorks 打開圖片,然后選擇[文件]-[圖像預覽]。

四、在[文件]中設置像素寬為640,高為480。

五、在[選項]中設置 “格式”為BMP8,“調色板”接“近網頁最合適”或“最合適”(自己預覽哪一種更好),在右邊的方框內輸入“14”(因GRUB只支持14色),再勾選上[抖動] 100% ,最后點取右下邊的[導出]按鈕,得到BMP格式的文件。 這一步最關鍵。

六、用ACD Photo Editor打開FireWorks導出得到的01.BMP圖片,打開[調整]-[色深]選項,改“256色(8位)”為“16色(4位)”然后保存為*.BMP圖片。

七、最后一步用Xnview打開剛才的BMP位圖,然后另存為XPM格式即可。

經試驗這個辦法制作的XPM圖片失真情況比以前壇友提供的方法小。

GRUB的背景圖片需要是6404808(色深為4)14色的xpm圖片。只有滿足以上所有的條件,得到的xpm背景圖片在啟動GRUB后才不會失真。下面介紹在Windows下制作xpm圖片的方法。

一、所需工具

1. FireWorks

2. ACD Photo Editor

3. Xnview

二、準備自己喜歡的圖片(可以是JPG、PNG等常用的格式)

三、用FireWorks 打開圖片,然后選擇[文件]-[圖像預覽]。

四、在[文件]中設置像素寬為640,高為480。

五、在[選項]中設置 “格式”為BMP8,“調色板”接“近網頁最合適”或“最合適”(自己預覽哪一種更好),在右邊的方框內輸入“14”(因GRUB只支持14色),再勾選上[抖動] 100% ,最后點取右下邊的[導出]按鈕,得到BMP格式的文件。 這一步最關鍵。

六、用ACD Photo Editor打開FireWorks導出得到的01.BMP圖片,打開[調整]-[色深]選項,改“256色(8位)”為“16色(4位)”然后保存為*.BMP圖片。

七、最后一步用Xnview打開剛才的BMP位圖,然后另存為XPM格式即可。

經試驗這個辦法制作的XPM圖片失真情況比以前壇友提供的方法小。

gromacs xpm eps文件查看

xpm文件是矩陣格式,刪除上方的注釋后,可以用Irfanview打開,But沒有注釋Label,沒有xy軸label,而且顏色也不好(黑白,而且感覺不到80level),需要采用gromacs xpm2ps轉換成eps文件查看。

EPS免費軟件:EPS Viewer

注意:xpm2ps關于設置矩陣在畫布上的位置和離畫布邊距離有bug,一般無法把標題和標注顯示全,不要在參數文件調,直接在別的畫圖軟件手動拼接!!

首先,需要提供一個參數文件 -di ?rmsdpara.m2p

然后 用xpm2ps命令將xpm文件轉化為eps文件

gmx_mpi xpm2ps -f rmsd.xpm -di rmsdpara.m2p -o rmsd.eps -rainbow blue

一個矩陣的m2p文件(rmsd.xpm):

linewidth = 6?

titlefont? ? ? ? ? ? ? ? = Arial //標題字符類型

titlefontsize? ? ? ? ? ? = 80?//標題字符大小

legend? ? ? ? ? ? ? ? ? = yes //顯示legend

legendfont? ? ? ? ? ? ? = Arial //legend字符類型,u sed when there is none in the .xpm

legendlabel? ? ? ? ? ? ? = RMSD (nm) //legend 名字,

legend2label? ? ? ? ? ? = // when merging two xpm's

legendfontsize? ? ? ? ? = 66 ?//legend字符大小

xbox? ? ? ? ? ? ? ? ? ? = 10 // x-size of a matrix element 該值的大小影響畫布的大小,得到的像素*像素的值改變,當xbox和ybox設置的值一樣時,矩陣正方形,不一樣時,是長方形

ybox? ? ? ? ? ? ? ? ? ? = 10

matrixspacing? ? ? ? ? ? = 20 ?// Space between 2 matrices

xoffset? ? ? ? ? ? ? ? ? = 300 ?// Between matrix and bounding box控制矩陣左邊離box邊的距離,同時改變x size,例如本來是2600*3400,當設置xoffset為300,則變成了2300*3400,左邊離畫布邊的留白變小300,但是右邊離畫布邊沒有任何變化!真是bug!但是可以通過左邊留白,把標題放左邊

yoffset? ? ? ? ? ? ? ? ? = 300 //控制矩陣下面離box邊的距離

boxlinewidth? ? ? ? ? ? = 20 //box邊框的寬度

ticklinewidth? ? ? ? ? ? = 8 //標度tick的寬度

zerolinewidth? ? ? ? ? ? = 0?

x-lineat0value? ? ? ? ? = none //? Draw line at matrix value==0

x-major? ? ? ? ? ? ? ? ? = 20?//x軸大分隔符間距為20,根據自己的數值設定

x-minor? ? ? ? ? ? ? ? ? = 10 //x軸小分隔符間距為20,一般設置為major的一半

x-firstmajor? ? ? ? ? ? = 0 ?// Offset for major tick 調節第一個標度從?開始

x-majorat0? ? ? ? ? ? ? = no ?// ?Additional Major tick at first frame

x-majorticklen? ? ? ? ? = 30 //大標度tick的長度

x-minorticklen? ? ? ? ? = 25 //小標度tick的長度

x-label? ? ? ? ? ? ? ? ? = Time (ns) ?//x軸標題

x-fontsize? ? ? ? ? ? ? = 66 //x軸標題字體大小

x-font? ? ? ? ? ? ? ? ? = Arial //x軸標題字體類型 (Time (ns))

x-tickfontsize? ? ? ? ? = 60 //x軸標度數字大小(0,20,40...) 我發現設置為60時大小剛好,但是!右側的最后一個數值顯示不全,如上圖所示,200被截斷 了,只顯示20,怎么調畫布都不行,是個bug!自己畫圖時需要自己手動補全

x-tickfont? ? ? ? ? ? ? = Arial ??//x軸標度數字類型

y-lineat0value? ? ? ? ? = none

y-major? ? ? ? ? ? ? ? ? = 20?

y-minor? ? ? ? ? ? ? ? ? = 10

y-firstmajor? ? ? ? ? ? = 0

y-majorat0? ? ? ? ? ? ? = no

y-majorticklen? ? ? ? ? = 30

y-minorticklen ? ? ? ? ?= 25

y-label? ? ? ? ? ? ? ? ? = Time (ns)

y-fontsize? ? ? ? ? ? ? = 66

y-font? ? ? ? ? ? ? ? ? = Arial

y-tickfontsize? ? ? ? ? = 60

blackwhite? ? ? ? ? ? ? = no

y-tickfont? ? ? ? ? ? ? = Arial

gmx xpm2ps [-f [.xpm]] [-f2 [.xpm]] [-di [.m2p]] [-do [.m2p]]

? ? ? ? ? [-o [.eps]] [-xpm [.xpm]] [-[no]w] [-[no]frame]

? ? ? ? ? [-title enum] [-[no]yonce] [-legend enum] [-diag enum]

? ? ? ? ? [-size real] [-bx real] [-by real] [-rainbow enum]

? ? ? ? ? [-gradient vector] [-skip int] [-[no]zeroline]

? ? ? ? ? [-legoffset int] [-combine enum] [-cmin real] [-cmax real]

DESCRIPTION

gmx xpm2ps makes a beautiful color plot of an XPixelMap file. Labels and axis can be displayed, when they are supplied in the correct matrix format. Matrix data may be generated by programs such as gmx do_dssp, gmx rms or gmx mdmat.

When no .m2p file is supplied, many settings are taken from command line options. The most important option is -size , which sets the size of the whole matrix in postscript units. This option can be overridden with the -bx and -by options (and the corresponding parameters in the .m2p file), which set the size of a single matrix element.

With -f2 a second matrix file can be supplied. Both matrix files will be read simultaneously and the upper left half of the first one (-f) is plotted together with the lower right half of the second one (-f2) . The diagonal will contain values from the matrix file selected with -diag.?

Plotting of the diagonal values can be suppressed altogether by setting -diag to none. In this case, a new color map will be generated with a red gradient for negative numbers and a blue for positive.對角線值默認顯示的是左上矩陣,可以通過-diag變為右下矩陣。

?If the color coding and legend labels of both matrices are identical, only one legend will be displayed, else two separate legends are displayed.?

OPTIONS

Options to specify input files:

-f? ? ? [.xpm]? ? ? ? ? (root.xpm)

? ? ? ? ? X PixMap compatible matrix file

-f2? ? [.xpm]? ? ? ? ? (root2.xpm)? ? ? (Opt.) //第二個矩陣

? ? ? ? ? X PixMap compatible matrix file

-di? ? [.m2p]? ? ? ? ? (ps.m2p)? ? ? ? (Opt., Lib.) //參數文件

? ? ? ? ? Input file for mat2ps

Parameters are set in the .m2p file optionally supplied with -di. Reasonable defaults are provided. Settings for the y-axis default to those for the x-axis. Font names have a defaulting hierarchy: titlefont - legendfont; titlefont - (xfont - yfont - ytickfont) - xtickfont, e.g. setting titlefont sets all fonts, setting xfont sets yfont, ytickfont and xtickfont.

Options to specify output files:

-do? ? [.m2p]? ? ? ? ? (out.m2p)? ? ? ? (Opt.)

? ? ? ? ? Input file for mat2ps

-o? ? ? [.eps]? ? ? ? ? (plot.eps)? ? ? (Opt.)

? ? ? ? ? Encapsulated PostScript (tm) file

-xpm? ? [.xpm]? ? ? ? ? (root.xpm)? ? ? (Opt.) //可以輸出一個彩色的或merge的新矩陣

? ? ? ? ? X PixMap compatible matrix file

Merged? or? rainbowed matrices? can be written to an XPixelMap file with the -xpm option.

Other options:

-[no]w? ? ? ? ? ? ? ? ? ? (no)

? ? ? ? ? View output .xvg, .xpm, .eps and .pdb files

-[no]frame? ? ? ? ? ? ? ? (yes)

? ? ? ? ? Display frame, ticks, labels, title and legend

-title? enum? ? ? ? ? ? (top) //更改標題顯示的位置,嘗試過更改為ylabel,還是不顯示,矩陣離邊框的距離設置太bug

? ? ? ? ? Show title at: top, once, ylabel, none

-title can be set to none to suppress the title, or to ylabel to show the title in the Y-label position (alongside the y-axis).

-[no]yonce? ? ? ? ? ? ? ? (no)

? ? ? ? ? Show y-label only once

-legend enum? ? ? ? ? ? (both)

? ? ? ? ? Show legend: both, first, second, none

-diag? enum? ? ? ? ? ? (first) //對角線數值默認來自第一個

? ? ? ? ? Diagonal: first, second, none

-size? real? ? ? ? ? ? (400)?

? ? ? ? ? Horizontal size of the matrix in ps units

-bx? ? real? ? ? ? ? ? (0)?

? ? ? ? ? Element x-size, overrides -size (also y-size when -by is not set)

-by? ? real? ? ? ? ? ? (0)

? ? ? ? ? Element y-size

-rainbow enum? ? ? ? ? ? (no)

? ? ? ? ? Rainbow colors, convert white to: no, blue, red

With the -rainbow option, dull grayscale matrices can be turned into attractive color pictures.

-gradient vector? ? ? ? (0 0 0)

? ? ? ? ? Re-scale colormap to a smooth gradient from white {1,1,1} to

? ? ? ? ? {r,g,b}

-skip? int? ? ? ? ? ? ? (1)

? ? ? ? ? only write out every nr-th row and column

-[no]zeroline? ? ? ? ? ? ? (no)?

? ? ? ? ? insert line in .xpm matrix where axis label is zero

-legoffset int? ? ? ? ? (0)

? ? ? ? ? Skip first N colors from .xpm file for the legend

-combine enum? ? ? ? ? ? (halves) //當xpm中有兩個矩陣的時候,結合模式默認為一半一半

? ? ? ? ? Combine two matrices: halves, add, sub, mult, div

With -combine, an alternative operation can be selected to combine the matrices. The output range is automatically set to the actual range of the combined matrix. This can be overridden with -cmin and -cmax.

-cmin? real? ? ? ? ? ? (0)

? ? ? ? ? Minimum for combination output

-cmax? real? ? ? ? ? ? (0)

? ? ? ? ? Maximum for combination output

xpm文件的介紹就聊到這里吧,感謝你花時間閱讀本站內容。

www.usteel.net