Search Results

Search found 17342 results on 694 pages for 'custom draw'.

Page 34/694 | < Previous Page | 30 31 32 33 34 35 36 37 38 39 40 41  | Next Page >

  • Quartz 2D: draw from a CGContext to another CGContext

    - by alexey
    I have a CGBitmapContext (bitmapContext) and I would like to draw some rectangle part (rect) of it to the current CGContext (context). Right now I do that way: CGContextRef context = UIGraphicsGetCurrentContext(); CGImageRef cgImage = CGBitmapContextCreateImage(bitmapContext); CGContextClipToRect(context, rect); CGContextDrawImage(context, CGRectMake(0, 0, width, height), cgImage); CGImageRelease(cgImage); Is it optimal? What is the best way to do it?

    Read the article

  • GoogleMaps API draw polygon over a complete town

    - by Frank
    Hello SOers, I'm wondering if it's actually possible to draw a polygon over a complete town with the GoogleMaps API V3 or the V2? If so could you please give an example on how to do it (choose your favorite town :)). I've some difficulties understanding this API. Thanks.

    Read the article

  • Draw Lines Over a Circle

    - by VOX
    There's a line A-B and C at the center between A and B. It forms a circle as in the figure. If we assume A-B line as a diameter of the circle and then C is it's center. My problem is I have no idea how to draw another three lines (in blue) each 45 degree away from AC or AB. No, this is not a homework, it's part of my complex geometry in a rendering. http://www.freeimagehosting.net/image.php?befcd84d8c.png

    Read the article

  • Draw rectangle using latitude/longitude on screen

    - by jamesM
    The existing application is providing me 8 coordinates like NElatitude, NElongitude, NWlatitude, NWlongitude, SElatitude, SElongitude, SWlatitude, SWlongitude and I have been asked to draw rectangles on screen using these coordinates as screen points. These rectangles should be with scaling. Thank you for your help. JamesM

    Read the article

  • Making an application draw a surface other than the desktop

    - by Cloud
    Hello Im looking for a way to get an application, any application, that has been started using ShellExecuteEx or CreateProcess to draw on an offscreen surface such as a bitmap instead of drawing on the desktop, this should include any dialogs the (Open, Save, messages) that the application invokes. I am familiar with the Windows API, GDI and device context, any suggestions would be much appreciated.

    Read the article

  • Draw a cross at center of a UIImagePickerController.

    - by VansFannel
    Hello. I'm very new on iPhone development. I'm trying to draw a cross over the image obtained from camera. I'm using a custom ViewController that inherits from UIImagePickerController. When I star the application, I see the cross, but a few seconds after the cross disappears. Should I use cameraOverlayView? Thank you

    Read the article

  • draw rectangel using latitude\longitude on screen

    - by jamesM
    the existing Application is providing me 8 coordinates like NElatitude,NElongitude, NWlatitude,NWlongitude, SElatitude,SElongitude, SWlatitude,SWlongitudepoints and i have been asked draw rectangles on screen using this coordinates as a screen points. These rectangles should be with scaling. thank you for your help JamesM

    Read the article

  • C++ Draw things on riched32.dll

    - by genesys
    Hi! I'm using riched32.dll to display and edit rich text. now I would like to draw some custom markings to the text, like for example the red underline in office word displaying wrong spelling. or text marking boxes with rounded corners or something like this. Of course those markings should scroll properly with the text. How can I do that? Thanks!

    Read the article

  • how to draw <Bar> on each 4th space

    - by Milan Leszkow
    I'd like (g)vim to draw pipe symbol '|' on each 4th space of indentation to show something like vertical indentation line. I found this plugin: http://vim.sourceforge.net/scripts/script.php?script_id=628 but it works only for 'tab'. I'm using spaces instead of the tabs. My .vimrc contains: set ts=4 set sw=4 set expandtab set softtabstop=4 Thanks for help

    Read the article

  • Get latlng and draw a polyline between that two latlng

    - by anup sharma
    I have some issue in my code in that first I want to get latlng of my given address/city name from two text boxes after that i converts it to from position's latlng and to position's latlng and at last i want to draw a polyline between these point and markers on both point also, But now i am trying to draw a line between these points. But still not working this code also no any error in console also. code is here for your help. function getRoute(){ var from_text = document.getElementById("travelFrom").value; var to_text = document.getElementById("travelTo").value; if(from_text == ""){ alert("Enter travel from field") document.getElementById("travelFrom").focus(); } else if(to_text == ""){ alert("Enter travel to field"); document.getElementById("travelTo").focus(); } else{ //google.maps.event.addListener(map, "", function (e) { var myLatLng = new google.maps.LatLng(28.6667, 77.2167); var mapOptions = { zoom: 3, center: myLatLng, mapTypeId: google.maps.MapTypeId.TERRAIN }; var map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions); var geocoder = new google.maps.Geocoder(); var address1 = from_text; var address2 = to_text; var from_latlng,to_latlng; //var prepath = path; //if(prepath){ // prepath.setMap(null); //} geocoder.geocode( { 'address': address1}, function(results, status) { if (status == google.maps.GeocoderStatus.OK) { // do something with the geocoded result // alert(results[0].geometry.location); from_latlng = results[0].geometry.location; // from_lat = results[0].geometry.location.latitude; // from_lng = results[0].geometry.location.longitude; // alert(from_latlng); } }); geocoder.geocode( { 'address': address2}, function(results, status) { if (status == google.maps.GeocoderStatus.OK) { // do something with the geocoded result to_latlng = results[0].geometry.location; // to_lat = results[0].geometry.location.latitude; // to_lng = results[0].geometry.location.longitude; // results[0].geometry.location.longitude // alert(to_latlng) } }); setTimeout(function(){ var flightPlanCoordinates = [ new google.maps.LatLng(from_latlng), new google.maps.LatLng(to_latlng) ]; //alert("123") var polyline; polyline = new google.maps.Polyline({ path: flightPlanCoordinates, strokeColor: "#FF0000", strokeOpacity: 1.0, strokeWeight: 2 }); polyline.setMap(map); // assign to global var path // path = polyline; },4000); // }); } }

    Read the article

  • Merge shapes and draw border around final shape

    - by Peter
    I can't post images yet: http://i.imgur.com/7Kci5.jpg Using Actionscript 3 I'm drawing multiple Shapes onto a MovieClip [top drawing]. The end result I need is the bottom drawing. I originally thought it would be simple to just merge the shapes and then find a way to draw a border around the end result but I can't seem to find any way of doing this. Is this possible or is there a better way of trying to do this?

    Read the article

  • How do I draw separators?

    - by someguy
    I am programming in C, using the Windows API, and would like to know how I could draw separators. I'm a total noob when it comes to writing GUI applications, so I may need a code example.

    Read the article

  • what is the best and easiest to draw a multi bar chart in php

    - by gin
    i want to display the results of students scores in a multi-vertical bar chart (red bar for correct , green bar for false) for each question,, i already tried Google chart, but it gives me result in this way:link text note: the bars that reached the top , should not be at top ,, only because they have the highest value (75%), Google chart makes it at top which i don't want.. any suggestions about how to draw simple vertical bar chart with php

    Read the article

< Previous Page | 30 31 32 33 34 35 36 37 38 39 40 41  | Next Page >