Compare commits
11
Commits
545be22235
..
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b8b379e853 | ||
|
|
b3c5ee5736 | ||
|
|
478b121bfc | ||
|
|
bfedae851a | ||
|
|
aac5868dfc | ||
|
|
9fd4157103 | ||
|
|
4cb41a1159 | ||
|
|
8b430ba940 | ||
|
|
d10837534c | ||
|
|
0550c58ade | ||
|
|
18f3e36226 |
@@ -94,7 +94,7 @@ namespace Hi.WinForm.Disp
|
||||
DispEngine.BackgroundColor = new Vec3d(0.1, 0.1, 0.5);
|
||||
DispEngine.BackgroundOpacity = 0.1;
|
||||
DispEngine.SetViewToHomeView();
|
||||
DispEngine.ImageRequestAfterBufferSwapped += DispEngine_ImageRequestAfterBufferSwapped;
|
||||
DispEngine.FrameReady += DispEngine_FrameReady;
|
||||
|
||||
// Set initial size and start the rendering engine
|
||||
this.Size = new System.Drawing.Size(500, 300);
|
||||
@@ -185,7 +185,7 @@ namespace Hi.WinForm.Disp
|
||||
#endregion
|
||||
|
||||
#region DispEngine_Rendering
|
||||
private unsafe void DispEngine_ImageRequestAfterBufferSwapped(byte* bgra_unsignedbyte_pixels, int w, int h)
|
||||
private unsafe void DispEngine_FrameReady(byte* bgra_unsignedbyte_pixels, int w, int h, FramePins pins)
|
||||
{
|
||||
// Create a bitmap from the raw pixel data provided by DispEngine
|
||||
Bitmap bitmap;
|
||||
|
||||
+3
-3
@@ -7,8 +7,8 @@
|
||||
<RootNamespace>$(AssemblyName)</RootNamespace>
|
||||
<Platforms>x64</Platforms>
|
||||
<Description>WinForm Display module of HiAPI</Description>
|
||||
<VersionBuild>154</VersionBuild>
|
||||
<VersionPrefix>3.1.$(VersionBuild)</VersionPrefix>
|
||||
<VersionBuild>30</VersionBuild>
|
||||
<VersionPrefix>3.2.$(VersionBuild)</VersionPrefix>
|
||||
<PackageTags>HiAPI</PackageTags>
|
||||
<RuntimeIdentifiers>win-x64</RuntimeIdentifiers>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
@@ -31,7 +31,7 @@
|
||||
<ProjectReference Include="..\HiDisp\HiDisp.csproj" />
|
||||
</ItemGroup>
|
||||
<ItemGroup Condition="'$(Configuration)'=='Release'">
|
||||
<PackageReference Include="HiDisp" Version="3.1.*" />
|
||||
<PackageReference Include="HiDisp" Version="3.2.*" />
|
||||
</ItemGroup>
|
||||
<Import Project="..\acc\deploy_local_nupkg.targets" Condition="'$(Configuration)'=='Release'" />
|
||||
<ItemGroup>
|
||||
|
||||
Reference in New Issue
Block a user