问题标签 [writeablebitmapex]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
c# - Cropping Image with Xamlcropcontrol for UI and WriteableBitmapEx
For the past week I've been researching as much as i can on how to add the ability to crop a profile image in my windows store app. So far I have looked at the Microsoft solution to this but have decided to go a different route. I downloaded a control from NuGet called XamlCropControl. It works pretty well for the UI and even give me information like Original Height/Width The position of the cropped top/bottom/left/right/width/height all within the xaml control. my question is as how to take that information and crop the the image using WriteableBitmapEx. So far this is my code and i'm having a problem.
PhotoUploadCropper is the xamlcropcontrol.
This is the information from xamlcropcontrol
It tells me there is no deffinition for FromContent if i have the (imagetoResize) there but if i remove it i get no error. After all the cropping is done it will be uploading to azure blob storage which i have already setup.
Edit: Works like this.
windows-runtime - 如何在 WinRT 中为 Windows Phone 8.1 截屏?
我知道如何在 Silverlight 中执行此操作,但我找不到有关如何在 WinRT 中执行此操作的足够信息。
我读到WinRT XAML Toolkit可能会有所帮助,但确切的组件WinRT XAML Toolkit - Composition
似乎与 Windows 通用应用程序不兼容。我目前正在开发 Windows Phone 8.1 部分。
WinRT XAML Toolkit for Windows Phone 8.1似乎也没有类似的WriteableBitmap.Render
方法。
我还读到WriteableBitmapExblit
中的方法可能会有所帮助,但我找不到任何有关如何实现此目的的示例。
有死吗?
c# - 有没有办法从 Windows 应用商店 (WinRT) 应用程序中的图像裁剪和歪斜四边形?
我正在为 Windows 商店编写一个应用程序,该应用程序使用 Canny 边缘检测来查找图像上文档的边界。找到角落后,我需要能够裁剪此图像。我可以使用 WriteableBitmapExtension 方法裁剪矩形,但问题是它很少是矩形,而是四边形。
我读到了一个叫做 Aforge 的东西,它可能可以做到,但它不支持看起来像的 Silverlight/WinRT。我知道这应该可以通过 OpenGL 实现,但很可能需要我更改大部分应用程序。有没有其他选择?
c# - 如何在 Windows Phone 8.1 Store 应用程序中将 WriteableBitmap 转换为 byte[]
我想将 WriteableBitmap 转换为 byte[] 并且 Internet 中有大量示例,但没有一个有效,或者在我的运行时(即 Windows Phone 8.1 商店项目)中没有当前的方法。这是我的 WriteableBitmap 对象。
使用时
来自 WriteableBitmapEx 库我认为它不会将里面的图像变成字节数组,而是将 WriteableBitmap 对象变成字节数组。我需要图像
我要做的就是将图片转换为字节数组并通过 HTTP 发送。如何?
c# - 在 WP 8.1 RT 中合并两个或多个图像
我试图通过重复平铺多个小图像来创建更大的图像。如何在 C#/WP8.1 中做到这一点?
我尝试合并字节数组(简单的附加不起作用),尝试在 XAML 上渲染(不起作用,用一些图像获取分隔线),尝试使用 WriteableBitmapEx(太慢,需要 UI 线程进行处理)和Lumia Imaging SDK 的两种方法(JpegTools 和 BlendEffect),但都产生分离线。
话虽如此,是否有任何其他方法可用于合并两个或多个图像?
我想探索字节级复制的选项;我该怎么做?如何合并两个图像数组并创建一个更大的图像?
编辑:问题是针对 WP 8.1 RT 而不是通用 C# 平台。
c# - System.Windows.Media.Imaging.WriteableBitmap 泄漏内存?
考虑以下代码引发异常“MILERR_WIN32ERROR”:
WriteableBitmap 没有实现 IDisposable,我不确定为什么会发生内存泄漏(我的原始代码要复杂得多,我对此进行了跟踪)。
c# - 如何在 Windows Phone 8.1 上的 WriteableBitmap 上绘图?
我正在尝试使用绘图板制作应用程序。我WriteableBitmapEx
根据自己的目的选择并开始开发。我遵循了这个库官方网站上的简短教程,但不幸的是我无法SetPixel(...)
在我的位图上绘图。谁能帮我解决它?
XAML 代码:
和 C# 代码:
c# - 调整大小的 WriteableBitmap 损坏
我有一种方法来调整图像的大小,如下所示。
我正在使用 WritableBitmapEx 库,在调整图像大小后,我在客户端使用以下代码将其转换为字节数组:
然后我正在使用BinaryWriter
. 但是我看不到图像。当我打开文件时,它说文件已损坏。如果我在不调整大小的情况下发送图片数组就没有问题。WriteableBitmapEx 库是否存在错误或我的代码有问题?
c# - WriteableBitmap.render 在 Windows 8.1 c# 中不起作用
有没有办法将 WriteableBitmapExwinphone.dll 添加到我的项目中?
c# - Dashed line using writeablebitmap
Are there a way when using writeablebitmap with writeablebitmapEx to draw a dashed line? Without having to manually calculate the dashes and create multiple lines to create the dashing effect?