Author Topic: PJSR: image.assignMask?  (Read 4287 times)

Offline mschuster

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1087
PJSR: image.assignMask?
« on: 2015 October 28 10:08:22 »
Is there a variant of Image.assign(Image) that respects the mask of the view's ImageWindow? That is, a variant that does the proper mask blend when a ImageWindow has an enabled mask? I want to replace the assign in the following code with a variant that respects the mask, and works properly when the view is a preview also. I cannot find anything.

Thanks,
Mike

Code: [Select]
      view.beginProcess();
      view.image.assign(resultImage);
      view.endProcess();

PS I could code this in PJSR but doing so is a bit slow and it seems like a commonly useful function justified for support.