/// <summary> /// Renders the current instance as a raw ASF object. /// </summary> /// <returns> /// A <see cref="ByteVector" /> object containing the /// rendered version of the current instance. /// </returns> public override ByteVector Render() { ByteVector output = StreamType.ToByteArray(); output.Add(ErrorCorrectionType.ToByteArray()); output.Add(RenderQWord(time_offset)); output.Add(RenderDWord((uint)TypeSpecificData.Count)); output.Add(RenderDWord((uint)ErrorCorrectionData.Count)); output.Add(RenderWord(Flags)); output.Add(RenderDWord(reserved)); output.Add(TypeSpecificData); output.Add(ErrorCorrectionData); return(Render(output)); }
public static Texture2D Encode(string msg, int width, int height, ErrorCorrectionType type) { return(QRCodeProcessor.Encode(msg, width, height, ErrorCorrectionLevelList[(int)type], null)); }
public static Texture2D Encode(string msg, int size, ErrorCorrectionType type) { return(Encode(msg, size, size, type)); }