- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
I have two questions
1. The screen display is not complete problem
But displayed image is not a complete picture, how can I automatically scaled according to my picturebox
For example, I should complete image as a blue border, but my picturebox image display range is only of only the red border
It
is
my code
private void button3_Click(object sender, EventArgs e) { PXCMSession session = PXCMSession.CreateInstance(); PXCMSession.ImplVersion version = session.QueryVersion(); textBox1.Text = version.major.ToString() + "." + version.minor.ToString(); PXCMSenseManager sm = session.CreateSenseManager(); sm.EnableStream( PXCMCapture.StreamType.STREAM_TYPE_COLOR, 0, 0); sm.Init(); pxcmStatus status = sm.AcquireFrame(true); PXCMCapture.Sample sample = sm.QuerySample(); PXCMImage image = sample.color; PXCMImage dimage = sample.depth; PXCMImage.ImageData data; image.AcquireAccess( PXCMImage.Access.ACCESS_READ, PXCMImage.PixelFormat.PIXEL_FORMAT_RGB32, out data); Bitmap bm = data.ToBitmap(0, image.info.width, image.info.height); pictureBox1.Image = bm; sm.ReleaseFrame(); sm.Close(); session.Dispose(); }
2. How to record images
- Balises:
- Intel® RealSense™ Technology
Lien copié
0 Réponses

Répondre
Options du sujet
- S'abonner au fil RSS
- Marquer le sujet comme nouveau
- Marquer le sujet comme lu
- Placer ce Sujet en tête de liste pour l'utilisateur actuel
- Marquer
- S'abonner
- Page imprimable