About MagickSetImage(functions) and MagickSet(functions)

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
diuming
Posts: 22
Joined: 2011-01-16T22:07:22-07:00
Authentication code: 8675308

About MagickSetImage(functions) and MagickSet(functions)

Post by diuming »

Deal all,

What's the different between MagickSetImage(functions) and MagickSet(functions)!
ex: function name with image or without image
MagickSetImageColorspace() and MagickSetColorspace()

thanks a lot.

Diuming
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: About MagickSetImage(functions) and MagickSet(functions)

Post by anthony »

I am not certain what the difference is, but looking at the documentation, I think MagickSetColorspace() only changes the setting in a 'wand' (perhaps for creating new images) while MagickSetImageColorspace() changes the setting in an existing image. Not absolutely sure. Anyone else who actually uses MagickWand like to answer?


But in magickCore SetImageColorspace() is the equivalent of -set colorspace
So I think MagickSetImageColorspace is what you want.

That is just set the image->colorspace Image structure element without actually changing or modifying the actual image data.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
el_supremo
Posts: 1015
Joined: 2005-03-21T21:16:57-07:00

Re: About MagickSetImage(functions) and MagickSet(functions)

Post by el_supremo »

See Magick's explanation in this post:
viewtopic.php?f=3&t=14899&p=52290&hilit ... ngs#p52290

Pete
Sorry, my ISP shutdown all personal webspace so my MagickWand Examples in C is offline.
See my message in this topic for a link to a zip of all the files.
diuming
Posts: 22
Joined: 2011-01-16T22:07:22-07:00
Authentication code: 8675308

Re: About MagickSetImage(functions) and MagickSet(functions)

Post by diuming »

You are provide very useful information!

Thanks Pete :D

Diuming
Post Reply