问题标签 [pixelformat]
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.
opengl - 关于 _INTEGER 的说明
我已经阅读了 wiki 的这个“像素转移”页面,但有一个问题让我很恼火。鉴于以下声明:
将“_INTEGER”添加到任何颜色格式表示将数据传输到/从整数图像格式传输
鉴于 _integer 仅影响像素数据在传入/传出 internalFormat 时发生的情况,像素类型的数据是否会影响 _integer 是否可以使用?
只要组件计数匹配,gl_red_integer、gl_rg_integer、gl_rgb_integer、gl_bgr_integer、gl_rgba_integer、gl_bgra_integer 格式是否可以与任何像素类型一起使用?
c# - 如何将 Microsoft.Kinect.ColorImageFormat 转换为 System.Windows.Media.PixelFormat?
我正在做 Kinect 编程,当我启用颜色流时,我定义为使用每秒 30 帧的拜耳格式 (ColorImageFormat.RawBayerResolution640x480Fps30)。
渲染图像时,我使用以下代码:
如何根据所选的 ColorImageFormat 在没有上述硬编码的情况下锻炼 PixelFormat?
提前致谢!
c - 颜色深度 PIXELFORMATDESCRIPTOR
我想知道要更改PIXELFORMATDESCRIPTOR
对象中的哪些值来更改颜色深度。
根据 OpenGL wiki,这是PIXELFORMATDESCRIPTOR
为 OpenGL 上下文创建对象的方式:
但它有不同的变量影响颜色深度。
我需要更改哪些以相应地调整颜色深度?
c# - 如何在 C# 中显示 12 位图像
我成功地在 C# 中使用System.Drawing.Imaging.PixelFormat.Format8bppIndexed
.
但是,我现在有一个 12 位的原始数据图像。如何在 C# 中显示它。
windows - Zero Opengl 3.2 pixelformat matches found?
Today I finally found out what has been stalling my development process: Even though no errorcode is set, the function wglChoosePixelFormatARB returns 0 pixelformats. I am trying to set up an OpenGL context in my C++ application and I have managed to retrieve the function pointers for the extensions.
glGetIntegerv(GL_MAJOR_VERSION, &maj)
returns 4 so, naturally, I assumed it would be possible to create an OpenGL 3.2 context. However, after finding out there were no matches, I started to comment out some of my requirements to go in the attribList parameter. There were no matches whatsoever. Only when I, just to be certain, commented out
WGL_CONTEXT_MAJOR_VERSION_ARB, 3,
WGL_CONTEXT_MINOR_VERSION_ARB, 2,
I finally got matches. Out of the 8 matching pixel formats that the other requirements meet, not ONE of them seems to support version 3 of OGL.
Has anyone ever run into this? I have tried updating/reinstalling my video drivers, but nothing has changed. I am running this on Windows 7, MS Visual Studio 2008, and my graphics card is one from the AMD Radeon HD 7700 Series.
java - 有趣的动态壁纸行为
我刚开始在 Android 中制作一些我的第一批动态壁纸,我注意到关于PixelFormat
. 如果我使用SurfaceHolder
's default PixelFormat
,我的动态壁纸有点滞后。如果我设置它PixelFormat
似乎RGB_565
可以解决这个问题。这真的不应该太令人惊讶。奇怪的是,分析显示以两种格式进行渲染所花费的时间一样长。谁能解释这种行为。
谢谢, 异或
---编辑---如果有任何帮助,我正在画布上渲染。我所做的只是调用drawColor
并绘制 3 条相当简单的抗锯齿路径。不是很喜欢它。
c# - 为什么 Control.DrawToBitmap 将像素格式更改为 DontCare?
我使用 IlSpy 来研究结果是设计用于保留目标位图的像素格式的方法,这里是代码:
如果您在绘图后在方法的最后检查“位图”的像素格式,它会给出正确的“Pixelformat”,但是一旦您检查了绘制控件的位图(传递给方法的位图),它就会给出“ DontCare”像素格式。
这背后的原因是什么?
c# - 在 C# 中使用 Bitmap.ConvertFormat(PixelFormat 从 24 位到 16 位 RGB555 抖动)
有什么简单的方法吗?我正在尝试使用抖动将 PixelFormat 从 24 位图像转换为 16 位 RGB555(用于便携式设备)。我已经测试了很多方法:
- AForge.NET
- 免费图片
- http://www.codeproject.com/Articles/66341/A-Simple-Yet-Quite-Powerful-Palette-Quantizer-in-C
他们都工作不佳。 http://msdn.microsoft.com/en-us/library/windows/desktop/ms536306(v=vs.85).aspx
我找到了一个 GDI+ 包装器,但缺少此功能。
谢谢!
c++ - 如何选择 DirectX 像素格式?
我确实对后台缓冲区的像素格式的概念有所了解。但是,使用未知格式和指定格式有什么区别:
(在 DirectX 11 中)DXGI_FORMAT_UNKNOWN 与 DXGI_FORMAT_R8G8B8A8_UNORM
(在 DirectX 9 中)D3DFMT_UNKNOWN 与 D3DFMT_X8R8G8B8
未知格式是否允许图形适配器选择最合适的格式或什么?
谢谢!
编辑:
我已经在 DirectX 9 中尝试了未知格式,它可以工作:
我在 DirectX 11 中尝试了未知格式,但它不起作用:
c# - 在 c# 中从图像中创建具有特定像素格式的位图而不加载图像
删除这个问题。我需要 30 个字符