討論區: English (Thread #10821)

Where is getCanvas() ? (2006-04-19 04:06 by benjaminbellamy #21349)

Hi,

I saw that QRCodeDecoder.getCanvas() has been removed :
http://cvs.sourceforge.jp/cgi-bin/viewcvs.cgi/qrcode/qrcode/src/jp/sourceforge/qrcode/codec/QRCodeDecoder.java?r1=1.9&r2=1.10

My question is : how do I get the canvas now ?

Yusuke, do you mind adding your jp.sourceforge.qrcode.example.QRCodeDecoderSampleGUI class to the CVS repository so that I can understand what's hapening here ?

Regards,
Benjamin.

回覆 #21349×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) 登入

RE: Where is getCanvas() ? (2006-04-19 10:20 by yanbe #21363)

Oops, I had to explain that operation in CVS comment.

I removed QRCodeDecoder.getCanvas() with other some out of dated methods.

I applied Singleton pattern to DebugCanvas.
And now you can get canvas with following code code anywhare:
DebugCanvas canvas = DebugCanvas.getCanvas();

Although I think this is better way than before, please tell me when you got some problems.
回覆: #21349

回覆 #21363×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) 登入