bitmap

Stitching large amounts of images together into one gigapixel image

橙三吉。 提交于 2020-01-26 02:44:27
问题 So I'm trying to get a sattelite map of my township that is available for offline use, and I used Universal Maps Downloader to download from bing's hybrid maps. That all worked fine, but when I used the program's built in image stitcher, I found that the resulting bitmap image was so large that it isn't a usable bitmap. Photoshop and all image viewers I can get my hands on won't view it (I'm guessing because bitmaps aren't supposed to be 6gb in size) So I'm wondering if A.) there are any

Convert View to bitmap FileNotFoundException problem

半腔热情 提交于 2020-01-25 21:10:48
问题 I'm trying to convert my LinearLayout to a bitmap so that I can save the current layout content as an image in SD card. First, I create bitmap and canvas and attach the layout to the canvas. Followed steps from http://www.brighthub.com/mobile/google-android/articles/30676.aspx#comments. //code to add child view into layout before creating bitmap screenBitmap = Bitmap.createBitmap(200,200,Bitmap.Config.ARGB_8888); Canvas canvas = new Canvas(screenBitmap); layout.draw(canvas); When I press the

Bitmap region is already locked

南笙酒味 提交于 2020-01-25 12:02:50
问题 string pathFile = @"C:\Users\user\Downloads\CaptchaCollection\Small\Sorted\"; var files = Directory.GetFiles(pathFile).Select(nameWithExtension => Path.GetFileNameWithoutExtension(nameWithExtension)).Where(name => { int number; return int.TryParse(name, out number); }).Select(name => int.Parse(name)).OrderBy(number => number).ToArray(); List<int> fileList = files.ToList(); image1 = new Bitmap(pathFile + fileList[0].ToString() + ".png"); image2 = new Bitmap(pathFile + fileList[1].ToString() +

Android: Cropping an Image from the Bottom Up

半腔热情 提交于 2020-01-25 08:43:11
问题 I have an image, and I am trying to overlay a cropped version of the image over the original. Something like this: Original Overlay Image Image after the overlay image is cropped to roughly 50% Right now, my code below reverses what I want, and returns an image like this: public void setOverlay(ImageView image, Bitmap originalBitmap, double percentageCompleted) { int percentHeight; int height = originalBitmap.getHeight(); Bitmap cropped; if(percentageCompleted == 0){ cropped = Bitmap

Face Detector Mobile Vision speed not increased with smaller Bitmap

让人想犯罪 __ 提交于 2020-01-25 06:51:12
问题 Summary: Our app depends on a high detection speed of facial landmarks (= like eyes open or closed). Thus I developed an algorythm that takes the position of the face from the last frame and crops the image from the next frame. This works perfectly and the Face Detector only has to process a quarter of the image. But it does not increase the detection speed. Does anybody know why? Edit: All that my algorythm is doing is croping the image based on the information from the last image. But it

How to draw PDF on canvas using skia sharp?

妖精的绣舞 提交于 2020-01-25 04:17:10
问题 I have referred official document of skia: https://docs.microsoft.com/en-us/dotnet/api/skiasharp.skcanvas?view=skiasharp-1.68.1#constructing-a-pdf-document // create the document var stream = SKFileWStream.OpenStream("document.pdf"); var document = SKDocument.CreatePdf(stream); // get the canvas from the page var canvas = document.BeginPage(256, 256); // draw on the canvas ... // end the page and document document.EndPage(); document.Close(); As per the above code I'm getting canvas, but how

c# winforms: Getting the screenshot image that has to be behind a control

非 Y 不嫁゛ 提交于 2020-01-24 14:31:49
问题 I have c# windows form which have several controls on it, part of the controls are located one on another. I want a function that will take for input a control from the form and will return the image that has to be behind the control. for ex: if the form has backgroundimage and contains a button on it - if I'll run this function I'll got the part of backgroundimage that located behind the button. any Idea - and code? H-E-L-P!!! 回答1: That's my initial guess, but have to test it. Put button

c# winforms: Getting the screenshot image that has to be behind a control

試著忘記壹切 提交于 2020-01-24 14:31:11
问题 I have c# windows form which have several controls on it, part of the controls are located one on another. I want a function that will take for input a control from the form and will return the image that has to be behind the control. for ex: if the form has backgroundimage and contains a button on it - if I'll run this function I'll got the part of backgroundimage that located behind the button. any Idea - and code? H-E-L-P!!! 回答1: That's my initial guess, but have to test it. Put button

Delphi - How to save bitmap to BLOB field in SQLite database

亡梦爱人 提交于 2020-01-24 13:24:10
问题 I am trying to add an array of TBitmap images to different records of a ClientDataSet (in a ftBlob field) and then save those records to a SQLite database. The BLOB field (DocImage) is a required field in the database. However, my code does not seem to save the bitmaps to the blob field in the ClientDataSet at all... So when I call BdmMain.cdsTrxDoc.ApplyUpdates(0) , I get the error: "Field 'DocImage' must have a value." I have checked the size of my BlobStream (BlobStream.Size) before and

Does android reuse images loaded from resource?

空扰寡人 提交于 2020-01-24 04:09:47
问题 So I have several ImageViews in a single Activity and all of them use the same image bitmap from a resource. ImageViewOne.setImageResource(R.drawable.frequently_used_image); ImageViewTwo.setImageResource(R.drawable.frequently_used_image); ImageViewThree.setImageResource(R.drawable.frequently_used_image); Does android allocate memory to load the bitmap once and reuse it for all other ImageViews using the same resource? Or does it load the bitmap each time it is set to an ImageView? Thanks! 回答1