Copy the buffer directly into the bitmap rather than converting to InteropBitmap then back again

Bitmap property was unused, so change to IsCleared property for now
This commit is contained in:
amaitland
2014-12-30 12:19:24 +10:00
parent 99eceb77d3
commit 22f70bbb9e
6 changed files with 55 additions and 34 deletions
+18
View File
@@ -0,0 +1,18 @@
// Copyright © 2010-2014 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
#pragma once
#include "Stdafx.h"
#include "NativeMethodWrapper.h"
using namespace System;
namespace CefSharp
{
void NativeMethodWrapper::CopyMemoryUsingHandle(IntPtr^ dest, IntPtr^ src, int numberOfBytes)
{
CopyMemory(dest->ToPointer(), src->ToPointer(), numberOfBytes);
}
}