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.BackgroundColor = new Vec3d(0.1, 0.1, 0.5);
|
||||||
DispEngine.BackgroundOpacity = 0.1;
|
DispEngine.BackgroundOpacity = 0.1;
|
||||||
DispEngine.SetViewToHomeView();
|
DispEngine.SetViewToHomeView();
|
||||||
DispEngine.ImageRequestAfterBufferSwapped += DispEngine_ImageRequestAfterBufferSwapped;
|
DispEngine.FrameReady += DispEngine_FrameReady;
|
||||||
|
|
||||||
// Set initial size and start the rendering engine
|
// Set initial size and start the rendering engine
|
||||||
this.Size = new System.Drawing.Size(500, 300);
|
this.Size = new System.Drawing.Size(500, 300);
|
||||||
@@ -185,7 +185,7 @@ namespace Hi.WinForm.Disp
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region DispEngine_Rendering
|
#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
|
// Create a bitmap from the raw pixel data provided by DispEngine
|
||||||
Bitmap bitmap;
|
Bitmap bitmap;
|
||||||
|
|||||||
+3
-3
@@ -7,8 +7,8 @@
|
|||||||
<RootNamespace>$(AssemblyName)</RootNamespace>
|
<RootNamespace>$(AssemblyName)</RootNamespace>
|
||||||
<Platforms>x64</Platforms>
|
<Platforms>x64</Platforms>
|
||||||
<Description>WinForm Display module of HiAPI</Description>
|
<Description>WinForm Display module of HiAPI</Description>
|
||||||
<VersionBuild>154</VersionBuild>
|
<VersionBuild>30</VersionBuild>
|
||||||
<VersionPrefix>3.1.$(VersionBuild)</VersionPrefix>
|
<VersionPrefix>3.2.$(VersionBuild)</VersionPrefix>
|
||||||
<PackageTags>HiAPI</PackageTags>
|
<PackageTags>HiAPI</PackageTags>
|
||||||
<RuntimeIdentifiers>win-x64</RuntimeIdentifiers>
|
<RuntimeIdentifiers>win-x64</RuntimeIdentifiers>
|
||||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||||
@@ -31,7 +31,7 @@
|
|||||||
<ProjectReference Include="..\HiDisp\HiDisp.csproj" />
|
<ProjectReference Include="..\HiDisp\HiDisp.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup Condition="'$(Configuration)'=='Release'">
|
<ItemGroup Condition="'$(Configuration)'=='Release'">
|
||||||
<PackageReference Include="HiDisp" Version="3.1.*" />
|
<PackageReference Include="HiDisp" Version="3.2.*" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="..\acc\deploy_local_nupkg.targets" Condition="'$(Configuration)'=='Release'" />
|
<Import Project="..\acc\deploy_local_nupkg.targets" Condition="'$(Configuration)'=='Release'" />
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
Reference in New Issue
Block a user