小编Arj*_*rma的帖子

如何在Windows Phone 8中获取捕获的图像或存储的图像的地理标记详细信息

我想从图像中获取有关地理位置的信息 ,如下图所示

在此输入图像描述

 void cam_Completed(object sender, PhotoResult e)
        {
            if (e.TaskResult == TaskResult.OK)
            {

                Image cameraImage = new Image();
                BitmapImage bImage = new BitmapImage();

                bImage.SetSource(e.ChosenPhoto);
                cameraImage.Source = bImage;

                e.ChosenPhoto.Position = 0;

                ExifReader reader = new ExifReader(e.ChosenPhoto);
                double gpsLat, gpsLng;

                reader.GetTagValue<double>(ExifTags.GPSLatitude,
                                                    out gpsLat))

                reader.GetTagValue<double>(ExifTags.GPSLongitude,
                                                    out gpsLng))


                MessageBox.Show(gpsLat.ToString() + "" + gpsLng.ToString());   

            }
        }
Run Code Online (Sandbox Code Playgroud)

这样我们就可以检测拍摄图像的位置.请帮助找到这些属性.

c# exif geolocation windows-phone exiflib

10
推荐指数
2
解决办法
1万
查看次数

设置asp.net验证器的顺序

我正在使用3个验证器来验证TextBox,但是当在Textbox中输入无效值时,所有验证器都会被触发.但我希望这些验证器按特定顺序工作,以便用户可以逐个解决这些故障.

<asp:TextBox ID="txt_temp" runat="server"></asp:TextBox>                                                  

<asp:CompareValidator ID="cv_txt_temp" runat="server" CssClass="error" ControlToValidate="txt_temp" ValueToCompare="0" Type="Double" Operator="GreaterThanEqual" ValidationGroup="insert" SetFocusOnError="true" ErrorMessage="Must be valid value" Display="Dynamic"></asp:CompareValidator>

<asp:RegularExpressionValidator ID="rev_txt_temp" CssClass="error" SetFocusOnError="true"
 runat="server" ErrorMessage="Value upto 1 decimal place" Display="Dynamic" ControlToValidate="txt_temp" ValidationExpression="\d+(?:(?:\.|,)\d{0,1})?" ValidationGroup="insert"></asp:RegularExpressionValidator>


<asp:RangeValidator ID="rv_txt_temp" Display="Dynamic" runat="server" SetFocusOnError="true" ValidationGroup="insert" ControlToValidate="txt_temp" Type="Double" CssClass="error"></asp:RangeValidator> 
Run Code Online (Sandbox Code Playgroud)

asp.net validation

8
推荐指数
2
解决办法
3567
查看次数

TFS版本控制不显示冲突

目前我已经将TFS从一个硬件迁移到另一个硬件,从那时每当有人检查代码而其他人获得该版本时,它只是替换代码并显示任何冲突警报.

它没有合并代码只是将其替换为其他版本.

我不知道为什么会这样.请提供您的建议

asp.net version-control tfs

6
推荐指数
1
解决办法
125
查看次数