2013-07-23 24 views
0

我在哪裏可以找到此文檔?在圖像magick中指定一個像素

我想這個選項:

-format "%[pixel: u.p{1,1}]" 

而且它還有像素1,1。

我怎麼能在圖像的100%獲得像素,我想:

-format "%[pixel: u.p{100%,100%}]" 
-format "%[pixel: u.p{-1,-1}]" 

我讀this,但是這是很難理解的像素錄入說:

p = pixel to use (absolute or relative to current pixel) 

上下文

我使用的完整命令是:

color=`convert ~/Desktop/my_image.png -format "%[pixel: u.p{-1,-1}]" info:` 

而我試圖讓圖像的最後一個像素的顏色。

回答

1

通過查看文檔,我建議你試試u.p{w-1,h-1}