Skip to content

Difference between ReadPixels and ImportPixels (and reading pixel data in general) #1867

Answered by dlemstra
Athari asked this question in Help
Discussion options

You must be logged in to vote

You would use ImportPixels when you want to import pixels into an area of the image. And yes that could also be the whole image. But in your situation I would advise you to use ReadPixels after you have created an empty MagickImage. And in the settings you will need to specify the mapping and the storage type of the pixels.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Athari
Comment options

@dlemstra
Comment options

Answer selected by Athari
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants