|
same error!!!!!!!!!?????????!...
x banyak yg boleh tolong...
sebab xcukup maklumat, x ...
alam. Post at 10-1-2012 14:44
alamak... abeh cane eh? hmm...
cani... ni koding tu...
- Dim buffer() As Byte = New Byte(CInt(len)) {}
- Marshal.Copy(ipData, buffer, 0, CInt(len))
- Dim memStream As New System.IO.MemoryStream(buffer)
- ' get the bitmap and draws the PictureBox
- Dim bitmap As Bitmap
- bitmap = bitmap.FromStream(memStream)
- LiveViewPictureBox.Image = bitmap
- LiveViewPictureBox.Refresh()
Copy the Code
sbnrnyer error kt len tu...kalo ikut pemahaman aku...
dr awl dier x assign kan ape2 ni pon...tu psl la dier jd error...
pastu aku sj assign value kt len tu...
pastu kuar error yg td tu kt - bitmap = bitmap.FromStream(memStream)
Copy the Code
kiranyer memStream tu 0 xdek nilai...
tp aku x pasti la btol ke x tang tuh... yg psl len =0 tu lg aku pon xdek idea.,,. |
|
|
|
|
|
|
|
alamak... abeh cane eh? hmm...
cani... ni koding tu...
sbnrnyer error kt len tu. ...
zienur Post at 10-1-2012 14:55
1st sekali nk bgtaw aku pon xpernah discover application ngan canon nih...
1) bedasarkan post ko kt atas.. dan aku prefer.. ko dah declare len tuh as integer or uInteger
Contoh .. Dim len as integer
Dim len as uInteger...
2) for sure kita xbleh assign mcm tuh jek... sbb kita guna System.Threading yg akan olwez loop
3) cuba tgk sdk API ko balik... kt first code ... dia ada declare "EdsError err = EDS_ERR_OK;"
kalo dlm vb.net jadilah ... = Dim err as EDS_ERR_OK (xnampak pon dlm code ko)
4)len tuh mesti merujuk kepada something dlm SDK yg kita mesti get(length) special foreach loop...
.. sowi... saya pon tingik gak nk tahu... anyway.. kt mana nk donlod SDK tuh?.. bleh share x? hik3... |
|
|
|
|
|
|
|
1st sekali nk bgtaw aku pon xpernah discover application ngan canon nih...
1) bedasarka ...
alam. Post at 10-1-2012 15:27
mmg btol la mcm yg ko kata tuh...dim err as integer
err=EDS_ERR_OK
tu aku sj assign sbb coding b4 tu pon error...
huishhh... nape aku x pandai eh? mencik la...
sdk ni opis aku beli... |
|
|
|
|
|
|
|
Reply 23# zienur
er kejap ko paste coding c++, kejap ko paste coding vb.
nak pakai language mn satu nih? |
|
|
|
|
|
|
|
Reply zienur
er kejap ko paste coding c++, kejap ko paste coding vb.
nak pakai language mn s ...
otai_g Post at 10-1-2012 16:21
huhu... yg aku bt dlm vb... yg aku copy dr SDK doc tu c++... |
|
|
|
|
|
|
|
so kene la aku convert sendirik jd vb.net nyer koding... |
|
|
|
|
|
|
|
da lei run sikit2... da lei view.... lei amik gbr....
tp bile loop tuk live view smule jd error....
thx sume bg idea n semangat... |
|
|
|
|
|
|
|
Post Last Edit by zienur at 12-1-2012 14:41
dah boleh dahhhhhhhhh ....
ajarrr lah skettt akak zienur yg bai ...
alam. Post at 12-1-2012 14:08
yerp... mungkin that's the place... tp kan... camera da kene DHL pegi ke tuan empunyer...so xlei nk bt ape da... sadis tol...
sy mmg gune coding yg link sy bg tuh... n Live image preview is possible only in A-DEP, M, Av, Tv, P camera
modes. and the lense focus is on AF mode....
the code running perfectly sepatutnyer tp pd sy dier gelong...
|
|
|
|
|
|
|
| |
|