我需要从imagemagick/rmagick库创建一个图像,我应该怎么做? 在PHP中,它与GD库一样在下面完成。如何在rails中创建图像? (从PHP中的imagecreate())
<?php
header ("Content-type: image/png");
$handle = ImageCreate (130, 50) or die ("Cannot Create image");
$bg_color = ImageColorAllocate ($handle, 255, 0, 0);
ImagePng ($handle);
?>
在输入中,我给出了图像的颜色,区域标签的图像坐标,就像那个..任何想法?
嗨anand,我需要有一个图像与给定的坐标一样的线图。感谢您的答案。 – 2012-01-09 12:32:25