=[uiimage imagewithcgimage:_scratchcgimg];[imageToDraw DrawInRect:self.frame];}Setsizebrush before Sethideview-(void) Sethideview: (uiview*) hideview{Cgcolorspaceref Colorspace=cgcolorspacecreatedevicegray ();CGFloat scale = [UIScreen mainscreen].scale;Get the cgimage of the current incoming viewUigraphicsbeginimagecontextwithoptions (hideView.bounds.size, NO, 0);Hideview.layer.contentsscale=scale;[Hideview.layer Renderincontext:uigraphicsgetcurrentco
chassis cover is open, the field displays "detected".
Drive Configuration Drive Settings
Diskette Drive A: disk drive A: If a floppy drive is installed in the system, use this option to enable or disable the floppy disk drive
Primary Master Drive First Master Drive
Primary Slave Drive first from the drive
Secondary Master Drive Second Master Drive
Secondary Slave Drive second from drive
IDE Drive UDMA support for
In the use of ghost Backup, restore the system, the speed is very slow. This situation is generally caused by the following reasons.
1. If the computer is a UDMA hard drive, to select 80 signal line of the line, if the use of 40 lines of line, in the ghost Run, the speed will have an impact.
2. Before preparing to restore the system, you can use the "VOTXP" software, first the hard disk, or use some tools to the system to "lose weight", which
memory bar be set to "2" in the SDRAM CAS latency option, which can speed up.
Newer motherboards support agp4x, if your video card also support agp4x, then the "Agp-4xmode" in the activation, that is, "enabled", this will better play the ability of the graphics card, speed up the system start speed.
Second, start the DMA mode, improve the speed of hard disk
Using UDMA/33, 66, 100 the highest transmission speed of the hard disk is 33mb/s, 66mb/s, 1
1, the color of the pure color map with a pictureThin Body Code-(UIImage *) Imagecolordraw: (Uicolor *) color{cgsize size = self.size; CGFloat scale = [Osconfigservice sharedinstance].screenscale; Cgcolorspaceref colorspace = Cgcolorspacecreatedevicergb (); Cgcontextref context = Cgbitmapcontextcreate (NULL, Size.width * scale, Size.height*scale,8,4* Size.width * scale, colorspace,cg_image_alpha_p
) {[Self setopaque:no];Set transparency if it's opaque, you can't see the next layer.self.sizebrush=10.0f;}return self;}-(void) DrawRect: (cgrect) rect{[Super Drawrect:rect];uiimage* Imagetodraw=[uiimage imagewithcgimage:_scratchcgimg];[imageToDraw DrawInRect:self.frame];}Setsizebrush before Sethideview-(void) Sethideview: (uiview*) hideview{Cgcolorspaceref Colorspace=cgcolorspacecreatedevicegray ();CGFloat scale = [UIScreen mainscreen].scale;Get the
implementing a linear gradient radial gradientThe new view has a drawrect: (cgrect) Rect method In this method, you can draw the content on the artboard (that is, the bottom view) gradient in two ways: 1 is a linear gradient 1 is a radial gradient first look at the linear gradient 1 set the context of the image 2 Get Color space description What type of color is he? 3 set start color end color and change them to CG color 4 set 4 parameters of the gradient gradient no need to create 2 3 5 draw li
not repeat the introduction, the above 2 articles have been introduced, I directly posted a few important code. My code directly from the Mupdf source code to modify, wrote a simple class, the variable name basically did not change, member variables are not changed to resemble "MyValue" or "m_value", we casually look at it. MuPDFConvert.h: #ifndef MY_MUPDF_CONVERT_PDF_PNG#defineMY_MUPDF_CONVERT_PDF_PNGextern "C" {#include "Mupdf/fitz.h" #include "mupdf/fitz-internal.h"}classcmupdfconvert{publ
cgbitmapcontextcreate function parameters in detail function prototypes:
Cgcontextref Cgbitmapcontextcreate (void *data,
size_t width,
size_t height,
size_t Bitspercomponent,
size_t Bytesperrow,
Cgcolorspaceref ColorSpace,
Cgbitmapinfo Bitmapinfo
);
Parameters:
Data points to the address of the drawing memory to render. The size of this memory block is at least (bytesperrow*height) bytes
Width bitmap, in p
Http://www.cambridgeincolour.com/tutorials/color-spaces.htm
A color space relates numbers to actual colors, and isThree-dimen1_object which contains all realizable colorCombinations. When trying to reproduce color on anotherDevice, color spaces can show whether you will be able to retainShadow/highlight detail, color saturation, and by how much eitherWill be compromised.
Http://www.cambridgeincolour.com/fonts/MathSoftText.swfTYPES
Color spaces can be either dependent to or independent of a give
1. Close the keyboard when you click the background.Add a gesture reader to viewDidLoad.
// add tap gesture recognizer UITapGestureRecognizer* tapRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleBackgroundTap:)]; tapRecognizer.cancelsTouchesInView = NO; [self.view addGestureRecognizer:tapRecognizer];
Define functions
- (void) handleBackgroundTap:(UITapGesture
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.