title: DrawText with outline using GDI (C++)
body: <p>I'm using this code to sign a frame from webcam:</p>
  
  <pre><code>Font = CreateFont(18, 0, 0, 0, FW_BOLD, FALSE, FALSE, FALSE, ANSI_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS, PROOF_QUALITY, VARIABLE_PITCH, "times");
  
  ...
  
  HDC hDC = CreateCompatibleDC(NULL);
  unsigned char * img = 0;
  HBITMAP hBitmap = CreateDIBSection(hDC, &amp;BMI, DIB_RGB_COLORS, (void**)&amp;img, NULL, 0);
  memcpy(img, CameraFrame.data, CameraFrame.size());
  free(CameraFrame.data);
  CameraFrame.data = img;
  SelectObject(hDC, hBitmap);
  SelectObject(hDC, Font);
  SetBkMode(hDC, TRANSPARENT);
  SetTextColor(hDC, RGB(255,255,255));
  string Text = "Test";
  DrawTextA(hDC, Text.c_str(), Text.size(), &amp;rect, DT_CENTER | DT_WORDBREAK);
  DeleteDC(hDC);
  </code></pre>
  
  <p>Of course the color scale of frames will differ, and I need the text to be visible anyway.</p>
  
  <p><strong>How to <code>DrawText</code> with outline?</strong> For example, white text with black outline.</p>