1 Replies - 1272 Views - Last Post: 23 April 2009 - 05:58 PM Rate Topic: -----

#1 Rhombus P. Hoboshoes  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 01-April 09

Writing a simple(?) image-editing loop

Posted 23 April 2009 - 01:53 PM

I want to write a simple application to complete a batch operation on a few hundred images, just to save me the time involved in doing the process manually.

What I want to do is to have the program open a file (preferably a PNG), and check if the bottom row of pixels is transparent (or empty/entirely of one colour). If this is the case, I want it to shift all the existing pixel rows down by one, moving the empty row that was just scanned to the top. I want this process to continue until the bottom row contains some pixels that aren't transparent/empty, at which point the image gets saved as this new, offset version.

The only problem is, I have no idea how I'd go about programming this. Maybe it's not even a good idea attempting to do this in C++, but I thought it'd be an interesting learning experience all the same. How would I go about doing this, if it isn't just madness?

This post has been edited by Rhombus P. Hoboshoes: 23 April 2009 - 01:56 PM

Is This A Good Question/Topic? 0
  • +

Replies To: Writing a simple(?) image-editing loop

#2 jeff666  Icon User is offline

  • D.I.C Head

Reputation: 6
  • View blog
  • Posts: 193
  • Joined: 30-December 08

Re: Writing a simple(?) image-editing loop

Posted 23 April 2009 - 05:58 PM

If it's on Windows, just use Win32 api (GDI, DX, etc),
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1