我正在尝试修改来自苹果的GLPaint示例,以绘制一条实线,而不是透明的霓虹灯一样的线条。我正在尝试实现触摸绘画功能,使其看起来像喷漆效果。我试着禁用了glblend,但没有效果。此外,我还试图让OpenGL在背景图像上绘制,而不是默认的黑色。或者可以使Open GL在透明背景的UIImageView上绘图?
发布于 2010-09-04 22:22:03
在paintingView.h中,您将找到:
#define kBrushOpacity   1.0 //the opacity of the line
#define kBrushPixelStep 1 // the density the dots
#define kBrushScale     14 //thickens  of the line (1 = thickest)
#define kLuminosity     0.5 // the Luminosity. I think that this is what you have to play with
#define kSaturation     1.0 //the Saturation of the line color更改这些参数将允许您实现实线。上面的设置会给你一条细的实线。
希望这能有所帮助。沙尼
https://stackoverflow.com/questions/2646489
复制相似问题