Search found 34 matches

by kirash4
2014-04-09T21:33:24-07:00
Forum: Magick++
Topic: image.write() problems ...
Replies: 0
Views: 7821

image.write() problems ...

Why would this not work: Magick::Image img("test.png"); img.resize(Magick::Geometry(200, 200)); img.write("result.png"); for (col = img.columns() - 1; col >= 0; col--) { // reading right -> left for (row = img.rows() - 1; row >= 0; row--) { // reading bottom -> top Magick::ColorR...
by kirash4
2014-04-09T14:21:35-07:00
Forum: Users
Topic: Magick++ <file>.write() function
Replies: 0
Views: 2963

Magick++ <file>.write() function

Posted in the wrong forum ... my apologies!
by kirash4
2014-04-09T14:00:14-07:00
Forum: Users
Topic: Detecting black along image side edges
Replies: 10
Views: 10467

Re: Detecting black along image side edges

If you need to find how many colmns on left or right or both are black, I think the easiest way is: F:\web\im>%IM%convert x.png -bordercolor black -border 1 -format "%w %h %@" info: 107 102 80x100+21+1 x.png is (before the border) 105x100, with 80 non-black pixels, starting at x-offset 20...
by kirash4
2014-04-07T16:16:07-07:00
Forum: Users
Topic: Detecting black along image side edges
Replies: 10
Views: 10467

Re: Detecting black along image side edges

Another possibility is temporary strip all the black and get the dimensions, then extent it back to final requirements, but that too could be problematic. That seems like the best approach. I do not see why it would be problematic. The problem would be if the image itself has parts of it that are b...
by kirash4
2014-04-07T13:41:52-07:00
Forum: Users
Topic: Detecting black along image side edges
Replies: 10
Views: 10467

Re: Detecting black along image side edges

What if there is a 10 pixel wide band on either side, or if one side has 20 pixels of black and the other 7 pixels? Do I continue to loop that till I find values that aren't 0? And I'm not sure yet what I'm going to do if instead of pure black, I encounter values that are low enough to be black, bu...
by kirash4
2014-04-07T12:39:23-07:00
Forum: Users
Topic: Detecting black along image side edges
Replies: 10
Views: 10467

Re: Detecting black along image side edges

What if there is a 10 pixel wide band on either side, or if one side has 20 pixels of black and the other 7 pixels? Do I continue to loop that till I find values that aren't 0? And I'm not sure yet what I'm going to do if instead of pure black, I encounter values that are low enough to be black, but...
by kirash4
2014-04-07T12:01:57-07:00
Forum: Users
Topic: Detecting black along image side edges
Replies: 10
Views: 10467

Detecting black along image side edges

How can I determine if an image has a vertical black bar on either left or right edge (whether it's 1 pixel wide or 100 pixels wide)? I'm trying to determine if I need to pad an image or not: if there is no edge, then I will pad. If there already is one, then do nothing. I'm working with Magick++ wr...
by kirash4
2014-04-07T11:46:41-07:00
Forum: Users
Topic: IM and MVSE 2012/2013
Replies: 17
Views: 17236

Re: IM and MVSE 2012/2013

Basically I want to develop a stand along application that allows a user to import an image, manipulate it (with IM), and save a binary file back to disk. What kind of changes do you want your users to make? If you don't need a GUI you could just add a 'Win 32 Console Application' to the solution. ...
by kirash4
2014-04-05T17:55:33-07:00
Forum: Users
Topic: IM and MVSE 2012/2013
Replies: 17
Views: 17236

Re: IM and MVSE 2012/2013

Personally I would prefer to use Code::Blocks, however as it turns out a) I can't get either IM nor wxWidgets to compile for C::B, so that's why I'm having to switch tracks and try to work with MVSE ... if that too fails I'm back to developing on unix and cross-compiling everything.
by kirash4
2014-04-05T17:53:43-07:00
Forum: Users
Topic: IM and MVSE 2012/2013
Replies: 17
Views: 17236

Re: IM and MVSE 2012/2013

No, I didn't select 64-bit during the configure step. But I am building on a 64-bit machine. Maybe that has something to do with it. Anyway, as for what kind of project I'm building. Basically I want to develop a stand along application that allows a user to import an image, manipulate it (with IM),...
by kirash4
2014-04-05T14:26:13-07:00
Forum: Users
Topic: IM and MVSE 2012/2013
Replies: 17
Views: 17236

Re: IM and MVSE 2012/2013

Why would you want to enable X11 support? And would you mind sharing the linker errors? I also have no clue why powershell is giving you that error. Have you tried running the powershell command that is in the 'UpgradeToVS2012.cmd' file from a command prompt. I have no answer on the X11 Support oth...
by kirash4
2014-04-05T12:11:27-07:00
Forum: Users
Topic: IM and MVSE 2012/2013
Replies: 17
Views: 17236

Re: IM and MVSE 2012/2013

If this helps, this is what I've done so far: - Unzipped the source files on my G:\ drive - entered G:\ImageMagick-6.8.8\VisualMagick\configure - ran configure.exe changed the setting to 'Static Multi-threaded DLL runtimes' changed Quantum depth to Q8 enabled X11 Support - Hit Next twice to exit the...
by kirash4
2014-04-05T11:49:45-07:00
Forum: Users
Topic: IM and MVSE 2012/2013
Replies: 17
Views: 17236

Re: IM and MVSE 2012/2013

UPDATE: I ran UpgradeToVS2012.cmd as administrator and this is what I got: .\build\UpgradeSolution.ps1 : The term '.\build\UpgradeSolution.ps1' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify tha...
by kirash4
2014-04-05T02:21:32-07:00
Forum: Users
Topic: IM and MVSE 2012/2013
Replies: 17
Views: 17236

Re: IM and MVSE 2012/2013

You don't need to build the configure.exe program. You can just run the executable that comes with the source. I was simply following the directions from imagemagick.org which says to build the configure program. However, I did find the provided exe and ran that. I changed it to a static, multi-thr...
by kirash4
2014-04-04T23:02:48-07:00
Forum: Users
Topic: IM and MVSE 2012/2013
Replies: 17
Views: 17236

Re: IM and MVSE 2012/2013

Ok, I guess this won't work for the Visual Studio Express version. Everything I tried gave me errors. This one kept popping up: Error 1 error C1083: Cannot open include file: 'afxwin.h': No such file or directory g:\imagemagick-6.8.8\visualmagick\configure\stdafx.h 15 1 configure So unless I shell o...