This project is read-only.

CreateImageFile method deprecated?

Apr 16, 2012 at 12:08 AM

Is the "CreateImageFile" method of the "Renderer" class no longer available?  I was following along the example under "Saving QR code to file" in the Documentation section of this site and this method doesn't appear to be present.

Many thanks in advance. ;-)

Apr 16, 2012 at 2:51 AM

There are two renderer class, one is under Gma.QrCodeNet.Encoding.Windows.WPF, the other one is under Gma.QrCodeNet.Encoding.Windows.Controls. 

It's very messy. CreateImageFile method only under the one inside namespace controls. 


As I reply to you under another post. There will be a major update this week. Which I rewrite not just control, but also for all renderer. One thing that I want to state will be CreateImageFile will not be there in any renderer in the future. You will be use WriteToStream instead. 

Simply create FileStream with path stick in, and pass that stream to WriteToStream method will do. 

For example

Using(Filestream stream = new Filestream(path, filecreatemode.create))


// code here that pass stream to renderer. 


Apr 16, 2012 at 3:37 AM

Silverlancer - thank you SO much for your speedy reply and this incredibly useful project.  Look forward to seeing the coming upgrade.

Apr 16, 2012 at 5:05 AM

Done. Check-in 15096