Search Results

Search found 3 results on 1 pages for 'openthread'.

Page 1/1 | 1 

  • OpenThread() through diiferent thread numbers ?

    - by user354641
    Hi there . I'm confusing about opening different threads with OpenThread Function and examining them with NtQueryInformationThread native function . I have no problem with NtQueryInformationThread & I can examine them finely. the problem is I don't know how to loop through different number of threads using OpenThread (with SetDebugPrivilege Consideration) . suppose we have different threads from number 5100 to 5200 & we want to examine them sequentially : for example 5100, 5101, 5102, 5103, 5104, 5105 ... 5200 ... . I don't know how to use OpenThread Function in delphi in right way ... . I'm using this syntax & I found it wrong : OpenThread(THREAD_ALL_ACCESS,false,(DWORD)5100) . if anyone could guide me how to use OpenThread though different number of threads it would be great . thanks alot .

    Read the article

  • How to save an animated image to iPhone's photos album?

    - by OpenThread
    I created an animated image, and it animates properly in an UIImageView: - (void)viewDidLoad { [super viewDidLoad]; UIImage *image1 = [UIImage imageNamed:@"apress_logo"]; UIImage *image2 = [UIImage imageNamed:@"Icon"]; UIImage *animationImage = [UIImage animatedImageWithImages:[NSArray arrayWithObjects:image1, image2, nil] duration:0.5]; UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(100, 100, 100, 100)]; imageView.image = animationImage; [self.view addSubview:imageView]; } But if saved to photos album, it couldn't animate agian: UIImageWriteToSavedPhotosAlbum(animationImage, self, @selector(imageSavedToPhotosAlbum:didFinishSavingWithError:contextInfo:), nil); So is there any solution to save an animated image to photos album? Special thanks!

    Read the article

  • How to take a layer's snapshot with mask layer?

    - by OpenThread
    I added a mask to UIView's layer: CGImageRef maskImageRef = [UIImage imageNamed:"Icon.png"].CGImage; CALayer maskLayer = [CALayer layer]; maskLayer.contents = (__bridge id)maskImageRef; self.layer.mask = maskLayer; Then I use this code to get snapshot from a UIView: [self.layer renderInContext:mainViewContentContext]; But the mask wasn't drawn. How to draw self.layer with mask? Special thx!

    Read the article

1