R
rblanchard
Guest
I have the following C# code I am trying to translate to OE. C#: byte[] buffer = new byte[data.Height * data.Stride]; OE ABL syntax: oSystemByte = NEW "System.Byte[]" (Data:HEIGHT * Data:Stride). C#: Marshal.Copy(data.Scan0, buffer, 0, buffer.Length); OE: System.Runtime.InteropServices.Marshal:Copy( Data:Scan0, oSystemByte, 0, oSystemByte:Length ). C#: byte alpha = buffer[y * data.Stride + 4 * x + 3]; What would the OE syntax for the above be? I have tried the following with no luck: DEFINE VARIABLE oAlpha AS "System.Byte[]" NO-UNDO. oAlpha:SetValue(oBuffer, (y * oData:Stride + 4 * x + 3) ).
Continue reading...
Continue reading...