关于quartz2d,核心图形,核心动画,核心图像的混淆 [英] confusion regarding quartz2d, core graphics, core animation, core images

查看:142
本文介绍了关于quartz2d,核心图形,核心动画,核心图像的混淆的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开展一个需要一些图像处理的项目,我也问了一些关于它的问题,我得到了非常好的解决方案,这里是链接

i am working on a project which requires some image processing, i also asked question regarding it and i got very good solution here is the link create whole new image in iOS by selecting different properties

但是现在全新的图像在ios中选择不同的属性我想更详细地了解这一点,我很困惑,我应该从哪里开始学习石英2d或核心动画或核心图形或核心图像

but now i want to learn this in more detail and i am confused from where should i start learning quartz 2d or core animation or core graphics or core image

苹果文件说关于石英2d那个

apple documents say regarding quartz 2d that


Quartz 2D API是Core Graphics框架的一部分,所以你可以
看看Quartz被称为Core Graphics或者,简单地说,CG。

The Quartz 2D API is part of the Core Graphics framework, so you may see Quartz referred to as Core Graphics or, simply, CG.

和apple docs说核心图形

and apple docs says about core graphics that


Core Graphics框架是一个基于C的API,它基于
Quartz高级绘图引擎。

The Core Graphics framework is a C-based API that is based on the Quartz advanced drawing engine.

这令人困惑,它们彼此之间的关系......

this is confusing how they both relate to each other...

现在核心动画包含了绘图中也需要的所有坐标,边界,框架等概念图像

now core animation contains all concepts of coordinates, bounds, frames etc which is also required in drawing images

和核心图像在ios 5中引入

and core image is introduced in ios 5

我应该从哪里开始学习或者我应该从哪个序列开始开始学习所有这些。

from where should i start learning or i which sequence i start learning all these.

推荐答案

Quartz和Core Graphics实际上是同义词。我倾向于避免使用Quartz,因为该术语非常容易混淆(实际上,包含Core Animation 的框架是QuartzCore,令人感到困惑)。

Quartz and Core Graphics are effectively synonymous. I tend to avoid using "Quartz" because the term is very prone to confusion (indeed, the framework that includes Core Animation is "QuartzCore," confusing matters further).

我想说:


  • 学习核心图形(CoreGraphics.framework)如果您需要高性能矢量绘图(线条,矩形,圆形,文本等),可能会与位图/光栅图形混合并进行简单修改(例如缩放,旋转,边框等)。核心图形不是特别适合更高级的位图操作(例如色彩校正)。 可以以位图/栅格操作的方式做很多事情,但它并不总是显而易见或直截了当。简而言之,Core Graphics最适合Illustrator / Freehand / OmniGraffle类型使用。

  • Learn Core Graphics (CoreGraphics.framework) if you need high performance vector drawing (lines, rectangles, circles, text, etc.), perhaps intermingled with bitmap/raster graphics with simple modifications (e.g. scaling, rotation, borders, etc.). Core Graphics is not particularly well suited for more advanced bitmap operations (e.g. color correction). It can do a lot in the way of bitmap/raster operations, but it's not always obvious or straightforward. In short, Core Graphics is best for "Illustrator/Freehand/OmniGraffle" type uses.

学习核心动画(在QuartzCore.framework中)如果,你需要动画内容。使用基本的UIView功能,基本动画(例如在屏幕上移动视图)可以完全不使用Core Animation,但如果你想做更高级的动画,Core Animation就是你的朋友。有点不直观的是,Core Animation也是CALayer系列课程的所在地,除了可动画之外,还可以让你做一些更有趣的事情,比如快速(尽管表现不佳)的视角和3D变换(给你一些可能的想法)作为穷人的OpenGL)。但它主要用于动画内容(或内容属性,如颜色和不透明度)。

Learn Core Animation (inside QuartzCore.framework) if, well, you need to animate content. Basic animations (such as moving a view around the screen) can be accomplished entirely without Core Animation, using basic UIView functionality, but if you want to do fancier animation, Core Animation is your friend. Somewhat unintuitively, Core Animation is also home to the CALayer family of classes, which in addition to being animatable allow you to do some more interesting things, like quick (albeit poorly performing) view shadows and 3D transforms (giving you what might be thought of as "poor man's OpenGL"). But it's mainly used for animating content (or content properties, such as color and opacity).

学习核心图像(在QuartzCore.framework内)如果你需要高性能,像素精确的图像处理。这可能是从色彩校正到镜头光晕到模糊以及介于两者之间的任何事物。 Apple发布过滤器参考,枚举可用的各种预构建的Core Image过滤器。你也可以写自己的,虽然这不一定适合胆小的人。简而言之,如果您需要实现[选择您最喜欢的照片编辑器]过滤器之类的东西,那么Core Image就是您的首选。

Learn Core Image (inside QuartzCore.framework) if you need high performance, pixel-accurate image processing. This could be everything from color correction to lens flares to blurs and anything in between. Apple publishes a filter reference that enumerates the various pre-built Core Image filters that are available. You can also write your own, though this isn't necessarily for the faint of heart. In short, if you need to implement something like "[pick your favorite photo editor] filters" then Core Image is your go-to.

这是否澄清了问题?

这篇关于关于quartz2d,核心图形,核心动画,核心图像的混淆的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆