Click here to Skip to main content
15,499,155 members
Home / Discussions / Objective-C and Swift
   

Objective-C and Swift

 
QuestionCan i use scanline Flood Fill algorithm to apply gradient in UIImage?How to use? Pin
Member 1319561211-May-17 22:09
MemberMember 1319561211-May-17 22:09 
AnswerRe: Can i use scanline Flood Fill algorithm to apply gradient in UIImage?How to use? Pin
Richard MacCutchan11-May-17 22:15
mveRichard MacCutchan11-May-17 22:15 
QuestionCrashing in printing Pin
Le@rner5-Apr-17 2:22
MemberLe@rner5-Apr-17 2:22 
AnswerRe: Crashing in printing Pin
Surya_Narayan11-Apr-17 0:26
professionalSurya_Narayan11-Apr-17 0:26 
GeneralRe: Crashing in printing Pin
Le@rner11-Apr-17 23:19
MemberLe@rner11-Apr-17 23:19 
QuestionHow to get the sensor data Pin
Member 1302743027-Feb-17 15:56
MemberMember 1302743027-Feb-17 15:56 
AnswerRe: How to get the sensor data Pin
Richard MacCutchan27-Feb-17 22:22
mveRichard MacCutchan27-Feb-17 22:22 
Questionimage from custom NSView , image quality is very bad. Pin
Le@rner16-Jan-17 19:50
MemberLe@rner16-Jan-17 19:50 
hi all,

i have an image with god quality even when i view it in preview and zoom its gud and not pixelate.

i have create an custom view class derived from NSView, to draw text above and below the image. and resize the image

inside the custom view class in -drawRect method, i draw the text and image.

with help of NSMutableAttributedString drawinRect and NSImage drawInRect methods.

than get final image like this.

<pre lang="objc">
OffscreenView 	*view = [[OffscreenView alloc] initWithImage:myimage];
    
    
    NSRect			rect = [view bounds];
    NSData 			*data = [view dataWithPDFInsideRect:rect];
NSImage			*image_bar = [[NSImage alloc] initWithData:data];


buts this image quality is very badges compare to original image i pass to view.

please help me to get god quality image here.

modified 17-Jan-17 1:09am.

AnswerRe: image from custom NSView , image quality is very bad. Pin
Surya_Narayan11-Apr-17 0:31
professionalSurya_Narayan11-Apr-17 0:31 
GeneralRe: image from custom NSView , image quality is very bad. Pin
Le@rner11-Apr-17 23:17
MemberLe@rner11-Apr-17 23:17 
QuestionSimultaneous Microphone Access on iPhone Pin
Member 123773388-Mar-16 1:35
MemberMember 123773388-Mar-16 1:35 
QuestionObjective C first program from the book, warning messages Pin
Alla__10-Nov-15 2:44
MemberAlla__10-Nov-15 2:44 
AnswerRe: Objective C first program from the book, warning messages Pin
BharathReddy V12-Jan-16 3:04
MemberBharathReddy V12-Jan-16 3:04 
QuestionLinker command failed with exit code 1 (use -v to see invocation) in xcode 5.1.1 Pin
Member 1198376314-Sep-15 11:17
MemberMember 1198376314-Sep-15 11:17 
QuestionImagePickerController image size Pin
liel333-Aug-15 12:30
Memberliel333-Aug-15 12:30 
AnswerRe: ImagePickerController image size Pin
biji cabe18-Dec-16 23:25
Memberbiji cabe18-Dec-16 23:25 
QuestioniOS XMPP received message in coversation screen Pin
Member 1176696715-Jun-15 3:37
MemberMember 1176696715-Jun-15 3:37 
SuggestionRe: iOS XMPP received message in coversation screen Pin
Richard MacCutchan15-Jun-15 5:19
mveRichard MacCutchan15-Jun-15 5:19 
GeneralRe: iOS XMPP received message in coversation screen Pin
Member 1176696715-Jun-15 21:42
MemberMember 1176696715-Jun-15 21:42 
AnswerRe: iOS XMPP received message in coversation screen Pin
Dennis E White17-Jun-15 6:54
professionalDennis E White17-Jun-15 6:54 
Questionmake a system monitor using obj c. Pin
Member 116779679-May-15 14:00
MemberMember 116779679-May-15 14:00 
AnswerRe: make a system monitor using obj c. Pin
Richard MacCutchan9-May-15 22:10
mveRichard MacCutchan9-May-15 22:10 
GeneralRe: make a system monitor using obj c. Pin
Dennis E White15-May-15 6:25
professionalDennis E White15-May-15 6:25 
GeneralRe: make a system monitor using obj c. Pin
Richard MacCutchan15-May-15 6:41
mveRichard MacCutchan15-May-15 6:41 
GeneralRe: make a system monitor using obj c. Pin
Dennis E White15-May-15 7:04
professionalDennis E White15-May-15 7:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.