<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic SR300 Display/Record problems in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/SR300-Display-Record-problems/m-p/1105828#M70448</link>
    <description>&lt;P&gt;I have two questions&lt;BR /&gt;
	1. The screen display is not complete problem&lt;BR /&gt;
	But displayed image is not a complete picture, how can I automatically scaled according to my picturebox&lt;/P&gt;

&lt;P&gt;For example, I should complete image as a blue border, but my picturebox image display range is only of only the red border&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Snap12.png"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/9059iB2D1A7C6817AAB9B/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Snap12.png" alt="Snap12.png" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE class="plain"&gt;It &lt;/CODE&gt;&lt;CODE class="keyword"&gt;is&lt;/CODE&gt; &lt;CODE class="plain"&gt;my code&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE class="brush:csharp;"&gt;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();
        }&lt;/PRE&gt;

&lt;P&gt;2. How to record images&lt;/P&gt;</description>
    <pubDate>Mon, 22 Aug 2016 06:16:51 GMT</pubDate>
    <dc:creator>zhang_e_</dc:creator>
    <dc:date>2016-08-22T06:16:51Z</dc:date>
    <item>
      <title>SR300 Display/Record problems</title>
      <link>https://community.intel.com/t5/Software-Archive/SR300-Display-Record-problems/m-p/1105828#M70448</link>
      <description>&lt;P&gt;I have two questions&lt;BR /&gt;
	1. The screen display is not complete problem&lt;BR /&gt;
	But displayed image is not a complete picture, how can I automatically scaled according to my picturebox&lt;/P&gt;

&lt;P&gt;For example, I should complete image as a blue border, but my picturebox image display range is only of only the red border&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Snap12.png"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/9059iB2D1A7C6817AAB9B/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Snap12.png" alt="Snap12.png" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE class="plain"&gt;It &lt;/CODE&gt;&lt;CODE class="keyword"&gt;is&lt;/CODE&gt; &lt;CODE class="plain"&gt;my code&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE class="brush:csharp;"&gt;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();
        }&lt;/PRE&gt;

&lt;P&gt;2. How to record images&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2016 06:16:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/SR300-Display-Record-problems/m-p/1105828#M70448</guid>
      <dc:creator>zhang_e_</dc:creator>
      <dc:date>2016-08-22T06:16:51Z</dc:date>
    </item>
  </channel>
</rss>

