I load an image into Calc, and I can change several properties with a macro:
If Brightness <> 0 Then objImage.AdjustLuminance = Brightness If Contrast <> 0 Then objImage.AdjustContrast = Contrast If Gamma <> 0 Then objImage.Gamma = Gamma If ColorMode = "C" Then objImage.GraphicColorMode = com.sun.star.drawing.ColorMode.STANDARD End If
However, adding code like:
objImage.GraphicCrop.Left = 500
An I missing something, or does this call not work in Calc?
We extract written data from scanned images, and sometimes it would make our lives easier if we could crop each image a set amount as it’s loaded. I could do it using a call in the macro to a program like ImageMagick, but there are issues with that.