& Lt; graphic images, animations, multimedia & gt; Reading Notes, graphic images Reading Notes

Source: Internet
Author: User

<Graphic images, animations, multimedia> Reading Notes, graphic images Reading Notes

To facilitate the operation of image classes defined in iOS, UIImage is an image class defined in the UIKit framework. It encapsulates high-level image classes and can be created in multiple ways. CGImage is also defined in the Core Graphics framework (or Quartz 2D). CGImage represents a bitmap image. CGImage is encapsulated, so CGImageRef is usually used to use CGImage.

In addition to UIImage and CGImage, there is also an Image class CIImage in the Core Image framework. CIImage encapsulates the Image class for better Image processing. for example, the use of filters. UIImage, CGImage, and CIImage can be converted between each other, involving conversion from C to OC objects. If the ARC technology is used here, pay attention to the memory release issue.


Core Image framework

Core Image is a very important framework in Image processing. Core Image is used to process and analyze images in real time. It can process images from Core Graphics, Core Video, and Image I/O and other framework data types. and uses the CPU or GPU for rendering. The Core Image can shield many low-level technical details, such as OpenGL ES and GCD.


The Core Image framework has the following important classes:

CIImage, Image class in Core Image framework

CIContext: context object. All image processing is completed in one CIContext. CIImage objects are rendered using Quartz 2D and OpenGL.

CIFilter, the filter class contains a dictionary structure that defines the attributes of various filters.

CIDetector is a facial recognition class that uses CIFaceFeature to identify the locations of the mouth and eyes.


CIImage is the most common class in the Core Image framework. It has some constructor methods and static creation methods.

+ (CIImage *) imageWithCGImage :( CGImageRef) image; // The static creation method. You can use CGImageRef to create an image object + (CIImage *) imageWithContentsOfURL :( NSURL *) url; // The static creation method, create an image object + (CIImage *) imageWithData :( NSData *) data; // create an image object using the NSData object in the memory-(id) initWithCGImage :( CGImageRef) image; // constructor: creates an image object through the CGImageRef object in the memory-(id) initWithData :( NSData *) data; // constructor, create an image object-(id) initWithContentsOfURL :( NSURL *) url through the NSData object in the memory; // construction method, and create an image object through the file path object

CIContext * context = [CIContext contextwitexceptions: nil]; // create the context CIImage * cImage = [CIImage imageWithCGImage: [_ image CGImage]; CIImage * result; CIFilter * sepiaTone = [CIFilter filterWithName: @ "CISepiaTone"]; // create a filter [sepiaTone setValue: cImage forKey: @ "inputImage"]; double value = [_ slider value]; NSString * text = [[NSString alloc] initWithFormat: @ "Old Intensity: %. 2f ", value]; _ label. text = text; [text release]; [sepiaTone setValue: [NSNumber numberWithFloat: value] forKey: @ "inputIntensity"]; // set the value result = [sepiaTone valueForKey: @ "outputImage"]; // output CGImageRef imageRef = [context createCGImage: result fromRect: CGRectMake (0, 0, self. imageView. image. size. width, self. imageView. image. size. height)]; UIImage * image = [[UIImage alloc] initWithCGImage: imageRef]; _ imageView. image = image; CFRelease (imageRef); // remember to release [image release];




Which of the following is the best choice for computer multimedia technology, graphic image production, and animation design and production?

My major is very similar to the three listed by you ~ However, it is software application-oriented.
I personally recommend you
Computer Multimedia Technology
It should be that this technology is the strongest, relatively speaking. You can learn more technical knowledge. The wider the way you go in the future, the wider the room for choice.
Drawing and image production can be compared and related to packaging, layout, and so on. The knowledge learned is very professional. But not too broad.
As for animation design and production, it is one of my favorite aspects. However, based on the current situation, it is not recommended that you choose this one. Of course, if you have talent and foundation, you can also consider

Multimedia Information refers to text, sound, graphics, images, animations, and videos. They belong to () A, indicating media B, feeling media C, display media D, storage media

A Indicates Media
Media (representation Medium) refers to the intermediary media used to transmit Sensory media, that is, the encoding used for data exchange. Such as JPEG and MPEG, text encoding (ASCII code, GB2312, etc.), and audio encoding. Different formats are used in the computer to represent media information.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.