Forum Replies Created

  • Abigail Klinton

    September 18, 2013 at 1:51 am in reply to: Media off line big problem

    I appreciated your sharing

  • Abigail Klinton

    September 17, 2013 at 7:36 am in reply to: Creating A TIFF Sequence Question

    Hello
    Here is my method to create a tiff sequence:
    using RasterEdge.Imaging.TIFF;
    using RasterEdge.Imaging.Basic.Codec;
    using RasterEdge.Imaging.Basic.Core;
    using RasterEdge.Imaging.Basic;

    namespace WindowsApplication2
    {
    public partial class Form1 : Form
    {
    public Form1()
    {
    InitializeComponent();
    }

    private void button1_Click(object sender, EventArgs e)
    {
    int width = 100;
    int height = 60;

    /// data[]: a byte array to contain color data (as same format as Image Data PixelArray in BMP file)
    /// caller must provide correct color data; otherwise, unpredictable error may happen
    byte[] data = new byte[width * height * 3];
    // set bottom 20 lines to red
    for (int rowIdx = 0; rowIdx < 20; rowIdx++)
    {
    for (int i = 0; i < width; i++) data[width * rowIdx * 3 + i * 3 + 2] = 0xFF;
    }
    // set top 10 lines to blue
    for (int rowIdx = 0; rowIdx < 10; rowIdx++)
    {
    for (int i = 0; i < width; i++) data[width * (height – 1 – rowIdx) * 3 + i * 3] = 0xFF;
    }

    REImage reImage = new REImage(width, height, ImageMode.RGB888, data);

    REFile.SaveImageFile(reImage, “c:/reimage.tif”, new TIFEncoder());

    }
    }
    }

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy