I am trying to increase / decrease brightness of a picture using RGBSurface.Transform
When Supports Hi-DPI is turned off Shared Build Settings, the code works fine,
but if Supports Hi-DPI is turned on then an UnsupportedOperationException error occurs.
Any help ?
This is the code I use
photo = photofolder.OpenAsVectorPicture
surf = photo.RGBSurface
br = 1 + (bright.Value/100)
for i = 0 to 255
if ibr < 255 Then
mapb.Append ibr
else
mapb.Append 255
end
next
surf.Transform mapb
drawphoto
mapb(0) = 0
all elements of array mapb have a value >= 0 and <= 255
bright is a slider control, hence bright.value is an integer.
I tried using a variable of type double instead of bright.Value, but still same problem