Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Mobile Development
  3. Mobile
  4. Decode QR

Decode QR

Scheduled Pinned Locked Moved Mobile
graphicshelp
1 Posts 1 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Tirumaleswara Reddy K
    wrote on last edited by
    #1

    Hi, here i am tring to decode my QR using ZXing but i am not able to decode it. Can any one help me. Thanks in advance..... public static String readQRImage(Bitmap bMap) { int[] intArray = new int[bMap.Width * bMap.Height]; bMap.GetPixels(intArray, 0, bMap.Width, 0, 0, bMap.Width,bMap.Height); byte[] bmpresult = intArray.SelectMany(v => BitConverter.GetBytes(v)).ToArray(); LuminanceSource source = new RGBLuminanceSource(bmpresult, bMap.Width, bMap.Height); BinaryBitmap bitmap = new BinaryBitmap(new HybridBinarizer(source)); Reader reader = new MultiFormatReader(); ZXing.Result result = reader.decode(bitmap); return result; } here result is getting null value. for encode i have used ZXing.Mobile.BarcodeWriter writer = new ZXing.Mobile.BarcodeWriter

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups